An automated trading bot for the 0G Newton Testnet that performs random swaps between available token pairs using Uniswap V3 protocol.
- Automated random swaps between supported token pairs (USDT, BTC, ETH)
- Dynamic gas price adjustment
- Optimal fee tier detection
- Configurable transaction count and time period
- Random or fixed delay between swaps
- Balance tracking and validation
- Error handling and automatic retries
- Node.js v16 or higher
- A wallet private key with testnet tokens
- Basic understanding of DeFi and Uniswap V3
- Clone the repository:
git clone https://github.com/mesamirh/0gAi-Testnet-bot.git
cd 0gAi-Testnet-bot
- Install dependencies:
npm install
- Create a
.env
file:
WALLET_PRIVATE_KEY=your_private_key_here
SWAP_DELAY=60
MIN_BALANCE_FOR_SWAP=0.1
Run the bot:
node main.js
Follow the prompts to:
- Enter the number of transactions
- Enter the time period (optional)
- USDT
- BTC
- ETH
- A0GI (native token, not available for swaps)
- USDT-BTC
- USDT-ETH
- BTC-USDT
- ETH-USDT
- Minimum balance checks
- Maximum gas price limits
- Transaction timeout protection
- Automatic retry mechanism
- Slippage protection
This is a testnet bot. Use at your own risk.