Ultra-fast Rust-based sniper bot for Solana PumpFun token launches
- ⚡ Zero-block execution - Achieve first buyer status
- 🔥 Real-time monitoring - Helius LaserStream integration
- 🛡️ MEV protection - Jito & Nozomi support
- 🎯 PumpFun optimized - Built specifically for PumpFun protocol
- 📊 High success rate - 60% first buyer achievement
- 🔧 Configurable - Customizable parameters
┌─────────────────┐ ┌──────────────────┐ ┌─────────────────┐
│ Helius │ │ Rust Bot │ │ MEV Services │
│ LaserStream │───▶│ (This Project) │───▶│ Jito/Nozomi │
│ (Monitoring) │ │ │ │ (Execution) │
└─────────────────┘ └──────────────────┘ └─────────────────┘
│ │ │
▼ ▼ ▼
┌─────────────────┐ ┌──────────────────┐ ┌─────────────────┐
│ New Token │ │ Transaction │ │ Solana │
│ Detection │ │ Construction │ │ Network │
└─────────────────┘ └──────────────────┘ └─────────────────┘
- Rust 1.70+
- Solana CLI tools
- Helius API key
- MEV service API key (Jito/Nozomi)
# Clone the repository
git clone https://github.com/0xRustPro/pumpfun-laserstream-sniper-rust.git
cd pumpfun-laserstream-sniper-rust
# Build the project
cargo build --releaseCreate a .env file in the project root:
# Wallet Configuration
PRIVATE_KEY=your_base58_private_key_here
# Service Configuration
CONFIRM_SERVICE=JITO # or NOZOMI
LASER_ENDPOINT=wss://atlas-mainnet.helius-rpc.com
LASER_TOKEN_KEY=your_helius_api_key
RPC_ENDPOINT=https://your-solana-rpc-endpoint.com
# Transaction Parameters
CU=200000
PRIORITY_FEE_MICRO_LAMPORT=1000000
THIRD_PARTY_FEE=0.001
# MEV Service (if using NOZOMI)
NOZOMI_API_KEY=your_nozomi_api_key# Run the sniper bot
cargo run --release| Metric | Result |
|---|---|
| First Buyer Rate | 60% (9/15) |
| Zero Block Execution | 60% (9/15) |
| Average Block Time | 0.8 blocks |
| Success Rate | 100% (15/15) |
| Service | Description | Min Fee |
|---|---|---|
| Jito | Primary MEV protection | 0.000001 SOL |
| Nozomi | Alternative service | 0.001 SOL |
| Tier | CU Limit | Priority Fee | Use Case |
|---|---|---|---|
| Low | 100,000 | 100,000 | Standard trades |
| Medium | 200,000 | 1,000,000 | Fast execution |
| High | 300,000 | 5,000,000 | Maximum speed |
src/
├── main.rs # Entry point & monitoring
├── buy_handler.rs # Transaction execution
├── pump_buy.rs # PumpFun protocol integration
├── block_hash.rs # Blockhash management
├── jito_confirm.rs # Jito MEV service
├── nozomi_handler.rs # Nozomi MEV service
├── constants.rs # Protocol constants
└── env_config.rs # Environment configuration
- helius-laserstream: Real-time blockchain monitoring
- solana-sdk: Core Solana functionality
- tokio: Async runtime
- reqwest: HTTP client
- High Risk: PumpFun tokens are extremely volatile
- No Guarantees: Past performance doesn't guarantee future results
- Regulatory: Check local laws regarding automated trading
- Funds: Only use funds you can afford to lose
- SOL Balance: Minimum 0.1 SOL for fees
- Network: Stable internet connection required
- Resources: 2GB RAM, modern CPU recommended
- Monitor: Continuously watches PumpFun program for new mints
- Detect: Identifies new token creation transactions
- Parse: Extracts mint address and creator information
- Execute: Constructs and submits buy transaction instantly
- Confirm: Uses MEV protection for reliable execution
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
For questions or support, please reach out via Telegram.