Solana Sniper Bot is a lightning‑fast copy‑trading / MEV engine that mirrors Pump.fun launches and whale transfers in under 150 ms.
Mempool via Yellowstone gRPC ➜ atomic Jito bundles ➜ dynamic TP / SL.
A high-performance sniper bot for Solana that:
- Streams blockchain data in real-time via Yellowstone gRPC, using Solana's Geyser plugin for ultra-low latency data. :contentReference[oaicite:1]{index=1}
- Submits transactions using Helius Sender, which dual-routes to validators and Jito to maximize inclusion speed. :contentReference[oaicite:2]{index=2}
- Persists metrics/signals to MongoDB for analytics and observability.
- Architecture
- Prerequisites
- Installation & Running Instructions
- Streaming Data: Yellowstone gRPC
- Fast Transaction Submission: Helius Sender
- Observability & Database
- Security & Best Practices
- Troubleshooting
- References
❤ ## Architecture
\[ Yellowstone gRPC Stream ]
↓
\[ Rust Bot Logic ]
↓ (signed tx)
\[ Helius Sender API ]
↓
Solana Network
↓
[ MongoDB Logging ]
- Yellowstone gRPC provides real-time streaming of slots, account updates, transactions, blocks—all with minimal delay. :contentReference[oaicite:3]{index=3}
- Helius Sender submits your signed transactions to both Solana validators and the Jito network concurrently, improving the likelihood of fast inclusion. It's free and high-throughput. :contentReference[oaicite:4]{index=4}
- Rust (stable toolchain)
- MongoDB instance accessible via connection string
- Helius API Key (for RPC access + Sender usage)
- Yellowstone gRPC endpoint & token (provided by your RPC provider, e.g., QuickNode, Helius, Shyft)
- Clone the repository and add your
.envfile. - Install Rust and ensure
cargois in your PATH. - (Optional) Install and run MongoDB locally or via Docker:
# on macOS
brew services start mongodb-community- Build the bot:
cargo build --release- Run the bot:
cargo run "token_creator_wallet_address"You can override RUST_LOG in .env or command line.
- Provides ultra-low latency real-time streaming of Solana data: accounts, transactions, slots, blocks. (Helius, QuickNode, QuickNode, Chainstack, Helius)
- Supports advanced filtering by program ID, accounts, transaction types. (Helius)
- Use LaserStream (recommended for reliability/backfill) or Dedicated Nodes based on load. (Helius)
- Implement auto-reconnect, ping keepalive, and backoff for stability.
- Helius Sender optimizes latency by simultaneously sending your transaction to validators and Jito. (Helius)
- No API credits consumed; includes global HTTP endpoints. (Helius)
- Requires a tip (≥ 0.001 SOL) to function efficiently. (Helius)
- Build your transaction using
ComputeBudgetProgram.setComputeUnitLimit/setComputeUnitPriceto tune priority fee.
- Persist signals, actions, and errors to MongoDB for post-mortem and analytics.
- Optional: add indexes (e.g.,
created_at,mint,program_id) and TTLs. - Log key metrics: send rate, latency, success/failure, priority fee values.
- Never commit your
.envor private keys. - Use separate wallets for operations vs trading.
- Include rate-limiting logic if hitting Helius quotas.
- Regularly rotate tokens/keys and backup your database.
- Streaming lag in JS clients: Node.js may lag under high throughput; Rust or Go handle streaming data more reliably. (Helius, Helius, Solana Stack Exchange)
- Choosing compute units: Simulate to estimate limits, add ~10% headroom, and set price via Helius priority fee estimate API.
- Yellowstone access: Get endpoint/token from your provider’s dashboard (QuickNode, Helius, Shyft, etc.). (QuickNode)
- Yellowstone gRPC Streaming: ultra-low latency streaming with filtering. (Helius)
- Account / Transaction / Slot Monitoring using Yellowstone. (Helius)
- Helius Sender API: dual-routing to validators & Jito, no credits required, priority tip. (Helius)
- Data Streaming Options (LaserStream / WebSockets). (Helius)
💬 ## Community & Commercial Edition
- Telegram → @bogardt
- Discord →
kama_92
Want the full ultra‑low‑latency engine? DM for single‑user licences (private repo + EULA).
License: MIT (demo edition). Commercial licence available for the full build.
