Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Neuraverse Auto Bot

Automated token swap bot for Neura Protocol Testnet. This bot supports multiple wallets and can perform automatic back-and-forth swaps.

Features

  • ✅ 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

Requirements

  • Node.js version 16 or higher
  • npm or yarn
  • Wallet private key with ANKR balance on Neura Testnet

Installation

  1. Clone this repository:
git clone https://github.com/vikitoshi/Neuraverse-Auto-Bot.git
cd Neuraverse-Auto-Bot
  1. Install dependencies:
npm install
  1. Create .env file in the root folder:
cp .env.example .env
  1. Edit .env file 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!

Usage

  1. Run the bot:
node index.js
  1. The bot will display a list of available tokens

  2. Select tokens to swap:

    • Enter the number for the FROM token (token to swap)
    • Enter the number for the TO token (destination token)
  3. Enter the amount of tokens to swap

  4. Enter how many times to perform the swap cycle

  5. The bot will start swapping automatically for all wallets

How It Works

The bot will perform the following steps for each wallet:

  1. Swap A → B: Swap token A to token B
  2. Wait 10 seconds
  3. Swap B → A: Swap back token B to token A (using entire balance)
  4. Wait 10 seconds
  5. Repeat the cycle according to the specified number

File Structure

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

Configuration

RPC Endpoint

const NEURA_RPC = 'https://testnet.rpc.neuraprotocol.io/';

Smart Contracts

  • Swap Router: 0x5AeFBA317BAba46EAF98Fd6f381d07673bcA6467
  • WANKR: 0xbd833b6ecc30caeabf81db18bb0f1e00c6997e7a

Retry Settings

  • Max retries: 3 attempts
  • Delay between retries: 10 seconds
  • Gas limit: 600,000

Tips & Tricks

  1. Native Token Balance: Ensure wallet has enough ANKR for gas fees
  2. Gas Reserve: Bot automatically reserves 0.005 ANKR for gas fees
  3. Multiple Wallets: Add more wallets using PRIVATE_KEY_N format in .env file
  4. Monitoring: Watch the colorful logging output for each transaction status

Troubleshooting

Error: "No private keys found"

  • Make sure .env file is created and contains private keys
  • Format must be: PRIVATE_KEY_1=0x...

Error: "Insufficient balance"

  • Ensure wallet has enough tokens to swap
  • Ensure there's ANKR balance for gas fees

Error: "Swap transaction reverted"

  • Check if the token pair has sufficient liquidity
  • Wait a moment and try again

Error: "Failed to fetch tokens"

  • Check internet connection
  • Subgraph API might be down, try again later

Security

⚠️ SECURITY WARNING:

  • Never commit .env file 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

Important Links

Disclaimer

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.

License

MIT License

Contributing

Pull requests and issue reports are welcome! Please open an issue first to discuss major changes.


About

Automated token swap bot for Neura Protocol Testnet. This bot supports multiple wallets and can perform automatic back-and-forth swaps.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages