This project is a Sniping Bot for the Tron blockchain, designed to allow users to quickly buy and sell tokens on the Tron network. It utilizes SunSwap's Smart Router for executing trades at the best prices with faster dynamic routing for trading pairs.
- Fast Token Trades: Execute buy and sell orders quickly on the Tron blockchain.
- AI-Enhanced Advisory: Analyze tokens before purchase and provide insights on potential risks.
- Optimized Routing: Uses SunSwap's Smart Router for best price execution and efficient trading routes.
- Telegram Bot Interface: Interact with the bot through Telegram commands.
- Node.js
- MongoDB
- Tron API Key
- Telegram Bot Token id
- Clone the repository
- Install dependencies:
npm install
- Set up environment variables in a
.env
file:BOT_TOKEN=your_telegram_bot_token TRON_FULL_HOST=https://api.trongrid.io API_KEY=your_tron_api_key PRIVATE_KEY=your_private_key ENCRYPTION_KEY=your_encryption_key DATABASE_URI=your_mongodb_connection_string
- Start the bot:
node src/main.js
- Interact with the bot on Telegram using the following commands:
/start
: Create a new TRON address and wallet/balance
: Check your TRX and TRC20 token balances/swap
: Swap tokens using SunSwap's Smart Router
src/main.js
: Entry point of the applicationsrc/commands/
: Contains command handlers for Telegram botsrc/utils/
: Utility functions including Tron Web setup and database operationssrc/service/
: Service layer for user-related operationssrc/model/
: MongoDB schema definitionssrc/config/
: Configuration constants and settings
-
Tron Web Integration:
startLine: 7 endLine: 11
-
Telegram Bot Commands:
startLine: 20 endLine: 38
-
Token Swapping:
startLine: 26 endLine: 77
-
Database Operations:
startLine: 5 endLine: 107
We welcome contributions! If you're interested in improving this project, feel free to fork the repository and submit a pull request.
For any queries or collaborations, please reach out to:
This project is licensed under the MIT License - see the LICENSE file for details.