Skip to content

mesamirh/0gAi-Testnet-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

0gAi-Testnet-Bot

An automated trading bot for the 0G Newton Testnet that performs random swaps between available token pairs using Uniswap V3 protocol.

Features

  • 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

Prerequisites

  • Node.js v16 or higher
  • A wallet private key with testnet tokens
  • Basic understanding of DeFi and Uniswap V3

Installation

  1. Clone the repository:
git clone https://github.com/mesamirh/0gAi-Testnet-bot.git
cd 0gAi-Testnet-bot
  1. Install dependencies:
npm install
  1. Create a .env file:
WALLET_PRIVATE_KEY=your_private_key_here
SWAP_DELAY=60
MIN_BALANCE_FOR_SWAP=0.1

Usage

Run the bot:

node main.js

Follow the prompts to:

  1. Enter the number of transactions
  2. Enter the time period (optional)

Supported Tokens

  • USDT
  • BTC
  • ETH
  • A0GI (native token, not available for swaps)

Available Trading Pairs

  • USDT-BTC
  • USDT-ETH
  • BTC-USDT
  • ETH-USDT

Safety Features

  • Minimum balance checks
  • Maximum gas price limits
  • Transaction timeout protection
  • Automatic retry mechanism
  • Slippage protection

Disclaimer

This is a testnet bot. Use at your own risk.

About

0gai testet bot. Auto swap.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published