This is a high-performance Rust-based sniper trading bot that monitors and executes trades on the Let's Bonk Dot Fun platform using Raydium Launchpad. The bot uses advanced transaction monitoring to detect and execute trades in real-time, giving you an edge in the market.
The bot specifically tracks buy
and sell
transactions on Raydium Launchpad for Let's Bonk Dot Fun tokens, providing fast execution and automated trading capabilities.
- Real-time Transaction Monitoring - Uses Yellowstone gRPC to monitor transactions with minimal latency and high reliability
- Raydium Launchpad Integration - Optimized for Let's Bonk Dot Fun platform trading
- Automated Copy Trading - Instantly replicates buy and sell transactions from monitored wallets
- Smart Transaction Parsing - Advanced transaction analysis to accurately identify and process trading activities
- Configurable Trading Parameters - Customizable settings for trade amounts, timing, and risk management
- Built-in Selling Strategy - Intelligent profit-taking mechanisms with customizable exit conditions
- Performance Optimization - Efficient async processing with tokio for high-throughput transaction handling
- Reliable Error Recovery - Automatic reconnection and retry mechanisms for uninterrupted operation
graph TB
subgraph "External Services"
YG[Yellowstone gRPC<br/>Transaction Feed]
RL[Raydium Launchpad<br/>DEX]
TG[Telegram Bot<br/>Notifications]
end
subgraph "Sniper Bot Core"
subgraph "Monitoring Layer"
TM[Transaction Monitor<br/>Real-time Detection]
TP[Transaction Parser<br/>Decode & Analyze]
end
subgraph "Trading Engine"
CT[Copy Trading<br/>Execute Trades]
SS[Selling Strategy<br/>Profit/Loss Management]
TR[Transaction Retry<br/>Error Recovery]
end
subgraph "DEX Integration"
RLH[Raydium Launchpad Handler<br/>Buy/Sell Operations]
end
end
subgraph "Configuration"
ENV[Environment Variables<br/>Trading Parameters]
TARGET[Target Wallets<br/>Monitor Addresses]
end
subgraph "Data Flow"
YG -->|Transaction Stream| TM
TM -->|Raw Transaction Data| TP
TP -->|Parsed Trade Info| CT
CT -->|Trade Execution| RLH
RLH -->|Buy/Sell Orders| RL
CT -->|Sell Triggers| SS
SS -->|Sell Orders| RLH
TR -->|Retry Failed Trades| RLH
CT -->|Notifications| TG
ENV -->|Configuration| CT
TARGET -->|Wallet Addresses| TM
end
subgraph "Trading Flow"
START([Bot Starts]) --> CONNECT[Connect to Yellowstone gRPC]
CONNECT --> MONITOR[Monitor Target Wallets]
MONITOR --> DETECT{Transaction Detected?}
DETECT -->|Yes| PARSE[Parse Transaction Data]
DETECT -->|No| MONITOR
PARSE --> VALIDATE{Valid Trade?}
VALIDATE -->|Yes| EXECUTE[Execute Copy Trade]
VALIDATE -->|No| MONITOR
EXECUTE --> SUCCESS{Trade Successful?}
SUCCESS -->|Yes| NOTIFY[Send Telegram Notification]
SUCCESS -->|No| RETRY[Retry with Error Recovery]
RETRY --> EXECUTE
NOTIFY --> MONITOR
end
style YG fill:#e1f5fe
style RL fill:#f3e5f5
style TG fill:#e8f5e8
style TM fill:#fff3e0
style TP fill:#fff3e0
style CT fill:#fce4ec
style SS fill:#fce4ec
style RLH fill:#f1f8e9
- Bot users looking for the fastest transaction feed possible for Let's Bonk Dot Fun trading
- Traders who want automated execution on Raydium Launchpad
- Users who want to copy trade from successful wallets
Before run, you will need to add the following environment variables to your .env
file:
GRPC_ENDPOINT
- Your Geyser RPC endpoint url.GRPC_X_TOKEN
- Leave it set toNone
if your Geyser RPC does not require a token for authentication.GRPC_SERVER_ENDPOINT
- The address of its gRPC server. By default is set at0.0.0.0:50051
.COPY_TRADING_TARGET_ADDRESS
- Wallet address(es) to monitor for trades (comma-separated for multiple addresses)
To enable Telegram notifications:
TELEGRAM_BOT_TOKEN
- Your Telegram bot tokenTELEGRAM_CHAT_ID
- Your chat ID for receiving notifications
IS_MULTI_COPY_TRADING
- Set totrue
to monitor multiple addresses (default:false
)PROTOCOL_PREFERENCE
- Set toraydium
for Raydium Launchpad (default:auto
)COUNTER_LIMIT
- Maximum number of trades to executeSELLING_TIME
- Time in seconds before selling (default: 600)PROFIT_PERCENTAGE
- Profit percentage for selling (default: 20.0)STOP_LOSS_PERCENTAGE
- Stop loss percentage (default: 10.0)
# Build the project
cargo build --release
# Run the bot
RUSTFLAGS="-C target-cpu=native" RUST_LOG=info cargo run --release
The codebase is organized into several modules:
- engine/ - Core trading logic including copy trading, selling strategies, and transaction parsing
- dex/ - Protocol-specific implementations for Raydium Launchpad
- common/ - Shared utilities, configuration, and constants
- core/ - Core system functionality
- error/ - Error handling and definitions
- services/ - External service integrations (RPC, blockhash processing, etc.)
Once started, the bot will:
- Connect to the Yellowstone gRPC endpoint
- Monitor transactions from the specified wallet address(es)
- Automatically copy buy and sell transactions as they occur
- Send notifications via Telegram for detected transactions and executed trades
- Execute trades on Raydium Launchpad for Let's Bonk Dot Fun tokens
- Removed PumpFun and PumpSwap support
- Focused on Raydium Launchpad integration for Let's Bonk Dot Fun
- Implemented concurrent transaction processing using tokio tasks
- Enhanced error handling and reporting
- Improved selling strategy implementation
For questions or support, please contact the developer.
This bot is for educational purposes only. Trading cryptocurrencies involves substantial risk of loss and is not suitable for all investors. The past performance of any trading system or methodology is not necessarily indicative of future results.