MCPcopy Index your code
hub / github.com/Trustdev-eth/pumpfun-raydium-sniper-rust-bot

github.com/Trustdev-eth/pumpfun-raydium-sniper-rust-bot @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
43 symbols 70 edges 14 files 5 documented · 12%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Solana Ultra-Fast Token Sniper Bot on Raydium & Pumpfun (Rust)

Overview

Introducing the Solana Ultra-Fast Token Sniper Bot, a high-performance Rust-based bot engineered to snipe newly launched tokens on Raydium and Pumpfun at unparalleled speeds. Designed for precision and efficiency, this sniper bot leverages low-latency execution, gRPC data feeds, and MEV optimization to give traders an edge in volatile markets.

Key Features

🚀 Speed & Efficiency

  • Real-Time Token Detection: Instantly detects new token listings on Raydium and Pump.fun.
  • Ultra-Low-Latency Execution: Uses Jito bundles and gRPC streaming for near-instant transactions.
  • Optimized Rust Performance: Memory-safe, concurrency-efficient architecture for lightning-fast trades.

🔒 Security & Reliability

  • Private Key Protection: Does not expose private keys in logs or memory.
  • Block Malicious Wallets: Supports a blacklist feature to avoid frontrunning wallets.
  • Custom Slippage & Risk Controls: Configurable slippage, auto-sell, and stop-loss functions.

📊 Advanced Trading Strategies

  • Dynamic Buy & Sell Triggers: Automates purchases & sales based on market trends.
  • Volume-Based Execution: Responds to large transactions to follow whale movements.
  • Auto-Sell Protection: Ensures exit from positions within a defined time frame.

🛠️ Deep Integration with Solana Ecosystem

  • Helius & Yellowstone gRPC Support: Connects to multiple data feeds for real-time insights.
  • Jito Block Engine: Enhances transaction confirmation speed using bundled transactions.
  • DEX Compatibility: Works seamlessly with Raydium, Pump.fun, Meteora, and Orca.

🎯 Trading Strategy

  • Buy Entry: Executes a purchase when a $1,000+ token buy is detected.
  • Sell Exit: Triggers a sell when a $300+ token sale is detected.
  • Time-Limit Protection: If a trade remains open for more than 60 seconds, an auto-sell is initiated.
  • Customizable Parameters: Modify buy/sell thresholds & time-frame to fit personal strategy.

🛠️ How to Run

  1. Configure Environment Variables
PRIVATE_KEY=your_private_key_here
RPC_HTTPS=https://mainnet.helius-rpc.com/?api-key=your_api_key_here
RPC_WSS=wss://atlas-mainnet.helius-rpc.com/?api-key=your_api_key_here
DEVNET_RPC_HTTPS=https://devnet.helius-rpc.com/?api-key=your_api_key_here
RAYDIUM_LPV4=675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8
SLIPPAGE=10
JITO_BLOCK_ENGINE_URL=https://ny.mainnet.block-engine.jito.wtf
JITO_TIP_STREAM_URL=ws://bundles-api-rest.jito.wtf/api/v1/bundles/tip_stream
JITO_TIP_PERCENTILE=50
YELLOWSTONE_RPC_HTTP=http://elite.rpc.solanavibestation.com/?api_key=your_api_key_here
YELLOWSTONE_RPC_WSS=ws://elite.rpc.solanavibestation.com/?api_key=your_api_key_here
JITO_TIP_VALUE=0.004
BUY_THRESHOLD=1000
SELL_THRESHOLD=300
TIME_EXCEED=60
  1. Add the wallet address you want to block on a new line and save the file.
0x1234567890abcdef1234567890abcdef12345678
0xabcdef1234567890abcdef1234567890abcdef12
  1. Run rustc main.rs .\main.exe

📞 Support & Contact

For support and further inquiries, please connect via Telegram: 📞 rust_devv.

Core symbols most depended-on inside this repo

log
called by 11
src/common/logger.rs
import_env_var
called by 6
src/common/utils.rs
get_associated_token_address
called by 5
src/core/token.rs
get_bonding_curve_account
called by 2
src/dex/pump_fun.rs
new_signed_and_send
called by 2
src/core/tx.rs
get_pool
called by 1
src/dex/raydium.rs
get_pool_state_by_mint
called by 1
src/dex/raydium.rs
get_pool_info
called by 1
src/dex/raydium.rs

Shape

Function 20
Class 12
Method 11

Languages

Rust100%

Modules by API surface

src/dex/raydium.rs12 symbols
src/dex/pump_fun.rs11 symbols
src/common/logger.rs8 symbols
src/common/utils.rs5 symbols
src/core/tx.rs3 symbols
src/core/token.rs3 symbols
src/main.rs1 symbols

For agents

$ claude mcp add pumpfun-raydium-sniper-rust-bot \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact