Skip to content

0xRustPro/solana-pumpfun-laserstream-sniper-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 PumpFun Sniper Bot

Ultra-fast Rust-based sniper bot for Solana PumpFun token launches

Rust Solana License

✨ Features

  • 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

🏗️ Architecture

┌─────────────────┐    ┌──────────────────┐    ┌─────────────────┐
│   Helius        │    │   Rust Bot       │    │   MEV Services  │
│   LaserStream   │───▶│   (This Project) │───▶│   Jito/Nozomi   │
│   (Monitoring)  │    │                  │    │   (Execution)   │
└─────────────────┘    └──────────────────┘    └─────────────────┘
         │                       │                       │
         ▼                       ▼                       ▼
┌─────────────────┐    ┌──────────────────┐    ┌─────────────────┐
│   New Token     │    │   Transaction    │    │   Solana        │
│   Detection     │    │   Construction   │    │   Network       │
└─────────────────┘    └──────────────────┘    └─────────────────┘

🚀 Quick Start

Prerequisites

  • Rust 1.70+
  • Solana CLI tools
  • Helius API key
  • MEV service API key (Jito/Nozomi)

Installation

# Clone the repository
git clone https://github.com/0xRustPro/pumpfun-laserstream-sniper-rust.git
cd pumpfun-laserstream-sniper-rust

# Build the project
cargo build --release

Configuration

Create 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

Running

# Run the sniper bot
cargo run --release

📊 Performance

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)

🔧 Configuration Options

MEV Protection Services

Service Description Min Fee
Jito Primary MEV protection 0.000001 SOL
Nozomi Alternative service 0.001 SOL

Priority Fee Tiers

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

🛠️ Development

Project Structure

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

Key Dependencies

  • helius-laserstream: Real-time blockchain monitoring
  • solana-sdk: Core Solana functionality
  • tokio: Async runtime
  • reqwest: HTTP client

⚠️ Important Notes

Risk Disclaimer

  • 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

Technical Requirements

  • SOL Balance: Minimum 0.1 SOL for fees
  • Network: Stable internet connection required
  • Resources: 2GB RAM, modern CPU recommended

📈 How It Works

  1. Monitor: Continuously watches PumpFun program for new mints
  2. Detect: Identifies new token creation transactions
  3. Parse: Extracts mint address and creator information
  4. Execute: Constructs and submits buy transaction instantly
  5. Confirm: Uses MEV protection for reliable execution

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🔗 Links

📞 Support

For questions or support, please reach out via Telegram.


⚠️ Disclaimer: This software is for educational purposes only. Use at your own risk. The authors are not responsible for any financial losses.

About

LaserStream is Helius’s ultra-low-latency Solana data stream (gRPC) that delivers new blocks, transactions, slots, and account updates directly from leaders, with replay and auto-reconnect. In short: it’s a very fast firehose for on-chain events.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages