https://github.com/mesamirh/0gai-testnet-bot
0gai testet bot. Auto swap.
https://github.com/mesamirh/0gai-testnet-bot
automation crypto nodejs
Last synced: 2 months ago
JSON representation
0gai testet bot. Auto swap.
- Host: GitHub
- URL: https://github.com/mesamirh/0gai-testnet-bot
- Owner: mesamirh
- Created: 2025-03-01T09:43:39.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-03-17T17:01:41.000Z (2 months ago)
- Last Synced: 2025-03-17T18:23:41.628Z (2 months ago)
- Topics: automation, crypto, nodejs
- Language: JavaScript
- Homepage:
- Size: 26.4 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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:
```bash
git clone https://github.com/mesamirh/0gAi-Testnet-bot.git
cd 0gAi-Testnet-bot
```2. Install dependencies:
```bash
npm install
```3. Create a `.env` file:
```
WALLET_PRIVATE_KEY=your_private_key_here
SWAP_DELAY=60
MIN_BALANCE_FOR_SWAP=0.1
```## Usage
Run the bot:
```bash
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.