README.md
A bot to automate testnet token swaps on Cosmos-based networks using Union Testnet.
Open your terminal and run the following command to clone the repository:
git clone https://github.com/KingTheAnalyst/UnionBOT.git
cd union-swap-bot
Ensure you have Python installed, then install the required dependencies:
pip install -r requirements.txt
Copy the example environment file and update it with your private details:
cp .env.example .env
Open .env
and fill in your WALLET_MNEMONIC and PRIVATE_KEY:
WALLET_MNEMONIC=your_mnemonic_here
PRIVATE_KEY=your_private_key_here
Before running swaps, fetch the token list:
python token_list.py
This will retrieve available tokens from the Union testnet.
Finally, execute the bot to start swapping tokens:
python swap_bot.py
The bot will execute multiple transactions with randomized parameters.
Check the console output to monitor transaction success or failure.
- If the bot fails to fetch tokens, check the TOKEN_LIST_URL in
config.py
. - If transactions fail, ensure your WALLET_MNEMONIC and PRIVATE_KEY are correct.
- Verify that your Python installation includes all dependencies by running:
pip freeze