Automated token swap bot for Neura Protocol Testnet. This bot supports multiple wallets and can perform automatic back-and-forth swaps.
- ✅ Multi-wallet support (handle multiple wallets simultaneously)
- ✅ Auto token swap with retry mechanism
- ✅ Automatic back-and-forth swaps (A→B then B→A)
- ✅ Auto ERC20 token approval
- ✅ Support for native token (ANKR) and ERC20 tokens
- ✅ Automatic token list fetching from subgraph
- Node.js version 16 or higher
- npm or yarn
- Wallet private key with ANKR balance on Neura Testnet
- Clone this repository:
git clone https://github.com/vikitoshi/Neuraverse-Auto-Bot.git
cd Neuraverse-Auto-Bot- Install dependencies:
npm install- Create
.envfile in the root folder:
cp .env.example .env- Edit
.envfile and add your wallet private keys:
PRIVATE_KEY_1=your_private_key_here
PRIVATE_KEY_2=your_private_key_here
PRIVATE_KEY_3=your_private_key_here
⚠️ IMPORTANT: Never share your private keys with anyone!
- Run the bot:
node index.js-
The bot will display a list of available tokens
-
Select tokens to swap:
- Enter the number for the FROM token (token to swap)
- Enter the number for the TO token (destination token)
-
Enter the amount of tokens to swap
-
Enter how many times to perform the swap cycle
-
The bot will start swapping automatically for all wallets
The bot will perform the following steps for each wallet:
- Swap A → B: Swap token A to token B
- Wait 10 seconds
- Swap B → A: Swap back token B to token A (using entire balance)
- Wait 10 seconds
- Repeat the cycle according to the specified number
Neuraverse-Auto-Bot/
├── index.js # Main bot file
├── package.json # Dependencies and scripts
├── .env # Configuration file (private keys)
├── .env.example # Template for .env file
└── README.md # Documentation
const NEURA_RPC = 'https://testnet.rpc.neuraprotocol.io/';- Swap Router:
0x5AeFBA317BAba46EAF98Fd6f381d07673bcA6467 - WANKR:
0xbd833b6ecc30caeabf81db18bb0f1e00c6997e7a
- Max retries: 3 attempts
- Delay between retries: 10 seconds
- Gas limit: 600,000
- Native Token Balance: Ensure wallet has enough ANKR for gas fees
- Gas Reserve: Bot automatically reserves 0.005 ANKR for gas fees
- Multiple Wallets: Add more wallets using
PRIVATE_KEY_Nformat in.envfile - Monitoring: Watch the colorful logging output for each transaction status
- Make sure
.envfile is created and contains private keys - Format must be:
PRIVATE_KEY_1=0x...
- Ensure wallet has enough tokens to swap
- Ensure there's ANKR balance for gas fees
- Check if the token pair has sufficient liquidity
- Wait a moment and try again
- Check internet connection
- Subgraph API might be down, try again later
- Never commit
.envfile to repository - Never share your private keys with anyone
- Use a separate wallet for testing
- This bot is for Testnet, DO NOT use on Mainnet without thorough code review
- GitHub: https://github.com/vikitoshi/Neuraverse-Auto-Bot.git
- Neura Explorer: https://testnet.neuraprotocol.io/
- Neura RPC: https://testnet.rpc.neuraprotocol.io/
This bot is created for educational purposes and testing on Testnet. Use at your own risk. The developer is not responsible for any loss of funds or other issues that may occur.
MIT License
Pull requests and issue reports are welcome! Please open an issue first to discuss major changes.