Automated token creation, monitoring, and selling on PumpFun
A high‑performance Rust bot that creates tokens on PumpFun, monitors for buy transactions, and automatically executes sell orders with MEV protection.
- Overview
- Features
- Architecture
- Quick Start
- Configuration
- How It Works
- Configuration Options
- Development
- Performance
- Security & Operations
- Testing
- Support
- License & Disclaimer
- 🎯 Token Creation - Deploy new tokens on PumpFun with custom metadata
- 👁️ Real-time Monitoring - Watch blockchain for buy transactions via Yellowstone gRPC
- ⚡ Instant Selling - Pre-created sell instructions for maximum speed
- 🛡️ MEV Protection - Multiple confirmation services (Jito, Nozomi, ZSlot)
- 🔄 Auto-execution - Sell tokens immediately when someone buys them
┌─────────────────┐ ┌──────────────────┐ ┌─────────────────┐
│ Token │ │ Real-time │ │ Automated │
│ Creation │───▶│ Monitoring │───▶│ Selling │
│ │ │ │ │ │
└─────────────────┘ └──────────────────┘ └─────────────────┘
│ │ │
▼ ▼ ▼
┌─────────────────┐ ┌──────────────────┐ ┌─────────────────┐
│ PumpFun │ │ Yellowstone │ │ MEV Services │
│ Protocol │ │ gRPC Stream │ │ (Jito/Nozomi) │
└─────────────────┘ └──────────────────┘ └─────────────────┘
- Rust 1.70+
- Solana CLI
- Wallet with SOL for gas fees
# Clone the repository
git clone <repository-url>
cd pumpfun-sniper-farm-bot
# Build the project
cargo build --releaseCreate a .env file:
# Required
PRIVATE_KEY=your_wallet_private_key_here
TARGET_WALLET=wallet_to_monitor_for_buys
RPC_ENDPOINT=https://api.mainnet-beta.solana.com
CONFIRM_SERVICE=JITO
# Token Settings
TOKEN_NAME=My Token
TOKEN_SYMBOL=MTK
TOKEN_URI=https://example.com/metadata.json
INITIAL_SOL_AMOUNT=0.001
SLIPPAGE=1.0
# Optional Services
NOZOMI_API_KEY=your_nozomi_key
ZERO_SLOT_KEY=your_zslot_key
GEYSER_URL=your_geyser_endpoint
LASER_ENDPOINT=your_laser_endpointcargo run --release- Creates a new token on PumpFun with your specified metadata
- Makes an initial buy to establish liquidity
- Generates sell instructions and stores them globally
- Connects to Solana blockchain via Yellowstone gRPC
- Filters transactions for your target wallet and PumpFun program
- Detects when someone buys your created token
- Instantly executes pre-created sell instructions
- Uses MEV protection services for fast confirmation
- Sells all tokens when a buy is detected
| Variable | Description | Default |
|---|---|---|
CONFIRM_SERVICE |
Confirmation service | JITO |
SLIPPAGE |
Slippage tolerance (%) | 1.0 |
BUY_SOL_AMOUNT |
Initial buy amount (SOL) | 0.001 |
PRIORITY_FEE |
Priority fee (micro lamports) | 0 |
- JITO - MEV protection with tip-based priority
- NOZOMI - Alternative fast confirmation service
- ZERO_SLOT - Zero-slot confirmation for maximum speed
src/
├── main.rs # Main application entry point
├── config/ # Configuration management
│ ├── credentials.rs # API keys and wallet setup
│ ├── trade_setting.rs # Trading parameters
│ └── clients.rs # Service client initialization
├── instructions/ # PumpFun instruction builders
│ ├── pumpfun_buy.rs # Token creation logic
│ └── pumpfun_sell.rs # Selling functionality
├── service/ # External service integrations
│ ├── jito/ # Jito MEV protection
│ ├── nozomi/ # Nozomi confirmation
│ └── zero_slot/ # ZSlot confirmation
└── utils/ # Utility functions
- Carbon Framework - Blockchain data processing
- Yellowstone gRPC - Real-time transaction streaming
- PumpFun Decoder - Protocol-specific instruction parsing
- Sub-second Response - Pre-created instructions for instant execution
- Low Latency - Direct gRPC streaming for real-time updates
- High Throughput - Async Rust for concurrent processing
- Memory Efficient - Static variables for global state management
- Use a dedicated hot wallet with limited funds
- Never commit secrets; prefer environment variables or a secrets manager
- Start with tiny trade sizes; scale gradually
- Validate RPC endpoints and confirmation services; monitor rate limits
- Keep dependencies up to date; review third‑party code
- Dry‑run/simulation on a devnet fork or private test harness
- Property tests for instruction builders and serialization
- Integration tests for confirmation services (behind feature flags)
For questions, feature requests, or consulting:
- Telegram: t.me/@lorine93s
- Open an issue on GitHub
This project is released under the MIT License.
This software is provided “as is”, without warranty of any kind. Trading cryptocurrencies involves substantial risk. You are solely responsible for compliance with applicable laws and any financial outcomes.
Happy Trading! 🎯