Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AutoEosBet

AutoEosBet is a lightweight automation project for interacting with the historical EOSBet dice contract through the EOSIO cleos command-line tool.

The main script can rotate through multiple EOS accounts, choose randomized roll values, wait between transactions, monitor account balances, and transfer a configured amount to a separate account when a balance threshold is reached.

Legacy project: this repository targets an older EOS/EOSBet environment. The RPC endpoint, contract account, transaction memo format, and EOSIO tooling used by the scripts may no longer be available or compatible with current infrastructure. Verify every dependency and transaction before using real funds.

Features

  • Automated EOSBet dice transactions through cleos
  • Support for three configured betting accounts
  • Configurable bet amount
  • Randomized roll values within a configurable range
  • Randomized delay between account actions
  • EOS balance checks after each transaction
  • Automatic transfer to a separate account after a balance threshold is reached
  • Python and shell-script implementations

Repository Contents

File Purpose
autobet.py Main Python automation script
autobet.sh Legacy shell implementation
geteos.sh Helper script for querying an EOS account balance
onebet.py Legacy single-bet helper script

Requirements

The scripts expect EOSIO command-line tooling to be installed locally, including:

  • cleos
  • keosd
  • Python 3 for autobet.py
  • Bash for the shell scripts

You also need an EOS wallet configured locally with the required account keys imported.

The scripts do not install or configure EOSIO tooling automatically.

Configuration

The primary configuration is defined near the top of autobet.py.

Enable or disable transactions

Enable_Bet = True

Set this to False while reviewing or modifying the script if you do not want it to submit transactions.

Timing

Sleep_Time = 15
Sleep_Time_Randome = 1

Sleep_Time controls the approximate interval for a complete account cycle. Sleep_Time_Randome adds variation to the delay between account actions.

Bet amount

Bet_Limit = "0.1000 EOS"

This is the amount sent for each bet.

Roll range

Roll_Random_Low = 35
Roll_Random_Up = 65

For each transaction, the script selects a random integer between these two values.

EOS RPC endpoint

API_URL = "https://api.eosnewyork.io:443"

The repository contains a historical default endpoint. Confirm that the endpoint you intend to use is active and trusted before running the script.

Wallet

Wallet_Passwd = "1234"

Replace placeholder values locally. Do not commit a real wallet password, private key, or other secret to the repository.

Accounts

My_Account = "aaaeeeiiioo"
My_Account2 = "aaaeeeiiioo"
My_Account3 = "aaaeeeiiioo"

These are the EOS accounts used by the main automation loop.

Balance threshold and transfer

Balance_Threshold = 3.5
Bet_Profit = "0.5000 EOS"
Earn_account = "aaapppaaappp"

After a bet, the script checks the account balance. When the balance is at or above Balance_Threshold, it attempts to transfer Bet_Profit to Earn_account.

Running the Python Script

After reviewing the configuration and verifying the EOSIO environment:

python3 autobet.py

The script runs continuously until it is stopped.

Before enabling transactions, inspect the generated cleos commands and confirm the contract account, memo format, RPC endpoint, source accounts, destination account, and EOS amounts.

Legacy Shell Script

The repository also includes an earlier Bash implementation:

chmod +x autobet.sh geteos.sh
./autobet.sh

The shell version depends on geteos.sh for balance queries and contains its own configuration values.

How It Works

For each configured account, autobet.py:

  1. Unlocks the local EOS wallet.
  2. Selects a random roll value from the configured range.
  3. Reads the account balance.
  4. Builds and submits a cleos transfer transaction to the configured EOSBet contract account.
  5. Waits briefly and reads the balance again.
  6. Reports the balance difference.
  7. Transfers the configured amount to the earnings account when the balance threshold is reached.
  8. Waits for a randomized interval before processing the next account.

The process repeats continuously.

Security Notes

This project can execute real blockchain transfers. Review the source before running it.

Do not store real private keys or wallet passwords in committed source code. Prefer local environment-specific configuration, protect the wallet process, verify destination accounts carefully, and test with values you can afford to lose.

The scripts use shell=True when executing commands, so configuration values should be treated as trusted local input rather than arbitrary user input.

Disclaimer

This repository is provided for educational and historical reference. Blockchain transactions are irreversible, and automated betting can result in financial loss. You are responsible for validating the current EOS infrastructure, contract behavior, legal requirements, and all transaction parameters before use.

License

No license file is currently included in this repository. Unless a license is added, the source remains subject to the default copyright rules that apply to published code.

About

a lightweight automation project for interacting with the historical EOSBet dice contract through the EOSIO

Resources

Stars

13 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages