Skip to content

This is a PumpFun token sniper and monitoring bot built in Rust that combines: Token Creation, Real-time Monitoring, Automated Selling, MEV Protection.

Notifications You must be signed in to change notification settings

Luukogood/pumpfun-sniper-farm-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 PumpFun Sniper & Farm Bot

Language Chain Status License

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.

📚 Table of Contents

  • Overview
  • Features
  • Architecture
  • Quick Start
  • Configuration
  • How It Works
  • Configuration Options
  • Development
  • Performance
  • Security & Operations
  • Testing
  • Support
  • License & Disclaimer

✨ Features

  • 🎯 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

🏗️ Architecture

┌─────────────────┐    ┌──────────────────┐    ┌─────────────────┐
│   Token         │    │   Real-time      │    │   Automated     │
│   Creation      │───▶│   Monitoring     │───▶│   Selling       │
│                 │    │                  │    │                 │
└─────────────────┘    └──────────────────┘    └─────────────────┘
         │                       │                       │
         ▼                       ▼                       ▼
┌─────────────────┐    ┌──────────────────┐    ┌─────────────────┐
│   PumpFun       │    │   Yellowstone    │    │   MEV Services  │
│   Protocol      │    │   gRPC Stream    │    │   (Jito/Nozomi) │
└─────────────────┘    └──────────────────┘    └─────────────────┘

🚀 Quick Start

Prerequisites

  • Rust 1.70+
  • Solana CLI
  • Wallet with SOL for gas fees

Installation

# Clone the repository
git clone <repository-url>
cd pumpfun-sniper-farm-bot

# Build the project
cargo build --release

Configuration

Create 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_endpoint

Run

cargo run --release

📋 How It Works

1. Token Creation

  • Creates a new token on PumpFun with your specified metadata
  • Makes an initial buy to establish liquidity
  • Generates sell instructions and stores them globally

2. Monitoring

  • Connects to Solana blockchain via Yellowstone gRPC
  • Filters transactions for your target wallet and PumpFun program
  • Detects when someone buys your created token

3. Automated Selling

  • Instantly executes pre-created sell instructions
  • Uses MEV protection services for fast confirmation
  • Sells all tokens when a buy is detected

⚙️ Configuration Options

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

Confirmation Services

  • JITO - MEV protection with tip-based priority
  • NOZOMI - Alternative fast confirmation service
  • ZERO_SLOT - Zero-slot confirmation for maximum speed

🔧 Development

Project Structure

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

Key Components

  • Carbon Framework - Blockchain data processing
  • Yellowstone gRPC - Real-time transaction streaming
  • PumpFun Decoder - Protocol-specific instruction parsing

📊 Performance

  • 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

🔒 Security & Operations

  • 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

🧪 Testing

  • 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)

📞 Support

For questions, feature requests, or consulting:

  • Telegram: t.me/@lorine93s
  • Open an issue on GitHub

📄 License

This project is released under the MIT License.

⚠️ Disclaimer

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! 🎯

About

This is a PumpFun token sniper and monitoring bot built in Rust that combines: Token Creation, Real-time Monitoring, Automated Selling, MEV Protection.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages