An ultra-low latency Solana sniper script optimized for the Jupiter V6 API, focusing on buying tokens within the first block of liquidity.
Solana New Pair Sniper โ Jupiter V6
TypeScript Solana sniper bot for first-block token launches using Jupiter V6.
Solana New Pair Sniper (Jupiter V6)
This project is a Solana sniper bot built with TypeScript that targets new liquidity pool launches and token listings on the Solana network. It detects newly created trading pairs in real time and executes trades through the Jupiter V6 swap API, aiming for first-block entry execution.
The sniper listens to Solana RPC WebSocket events, identifies new Raydium or liquidity pool accounts, runs safety checks such as mint authority validation, freeze authority checks, and LP burn thresholds, and then requests a swap route from Jupiter V6. A versioned transaction is built and broadcast to multiple RPC endpoints simultaneously to reduce latency and improve confirmation speed.
This repository is designed for developers and traders building Solana trading bots, token snipers, pump.fun launch bots, or automated DeFi trading infrastructure.
The public version demonstrates the core detection and execution pipeline, while the private build includes additional features such as multi-wallet execution, MEV protection, and automated exit logic.
โก How It Works โ First-Block Execution
Most Solana snipers poll liquidity pools on a timer. By the time they detect a new pair, confirm the RPC response, and submit a transaction โ the first block is long gone.
This script cuts the chain differently:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ SOLANA NEW PAIR SNIPER โ EXECUTION FLOW โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฃ โ โ โ [Geyser / WebSocket Feed] โ โ โ โ โ โผ โ new pool account detected (pre-confirmation) โ โ [Pair Filter Engine] โ โ โ โ token validation, rug checks, mint authority flag โ โ โผ โ โ [Jupiter V6 Quote Engine] โ โ โ โ GET /quote โ POST /swap (versioned tx + ALTs) โ โ โผ โ โ [Transaction Builder] โ โ โ โ versioned tx, compute budget ix, priority fee inject โ โ โผ โ โ [RPC Broadcast โ Multi-Endpoint] โ โ โ โ fires to 3 endpoints simultaneously โ โ โผ โ โ [Confirmation Listener] โ โ โโโ slot delta logged, fill price recorded โ โ โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Why Jupiter V6 specifically? Jupiter V6 introduced versioned transaction support with Address Lookup Tables (ALTs), reducing transaction size by ~40% versus legacy format. Smaller transaction = lower compute cost = higher priority at the same lamport spend. For sniping, that's not a minor optimization โ it's the difference between slot 0 and slot 3.
๐ก Live Execution Output
Real snipe session output, Raydium CLMM new pool, SOL/token pair entry:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ SOLANA NEW PAIR SNIPER v0.4.1 | 2026-03-11T14:22:07.441Z โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
[14:22:07.441] ๐ Pool account detected: 7xKqP...mnR9 [14:22:07.443] โ
Mint authority: null (renounced) [14:22:07.444] โ
Freeze authority: null [14:22:07.445] โ
LP burn: 100% [14:22:07.446] โก Sending quote request to Jupiter V6... [14:22:07.489] ๐ Quote received: 0.15 SOL โ 142,880 $TOKEN Impact: 0.38% | Route: Raydium CLAMM direct [14:22:07.491] ๐๏ธ Building versioned transaction (ALT: 4rZp...Lk2) [14:22:07.494] ๐ธ Priority fee: 0.002 SOL (auto-escalated, slot lag=0) [14:22:07.496] ๐ค Broadcasting to 3 RPC endpoints simultaneously... [14:22:07.601] โ
CONFIRMED sig: 3NzWq...p8Rf Slot delta from pool open: +1 Fill price: $0.00000105 Tokens received: 142,880 Total cost: 0.152 SOL (incl. fees)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ [14:22:07.602] ๐ Position open. Monitoring for exit signal... โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ Sniper Comparison โ Jupiter V6 vs. the Field
Every "Solana sniper" makes speed claims. Here's what actually differentiates execution at the block level:
| Feature | This Sniper | Trojan On-Chain | Photon Bot | Generic Raydium Script | BonkBot | |---|---|---|---|---|---| | Jupiter V6 versioned tx | โ Native | โ Legacy only | โ Partial | โ No | โ No | | First-block target architecture | โ Yes | โ ๏ธ Best-effort | โ ๏ธ Best-effort | โ Poll-based | โ No | | Self-hosted (keys never leave you) | โ Yes | โ Custodial | โ Custodial | โ Yes | โ Custodial | | Mint / freeze authority checks | โ Pre-buy | โ Manual | โ ๏ธ Basic | โ None | โ None | | Multi-endpoint broadcast | โ Yes | โ Single RPC | โ Single RPC | โ Single RPC | โ No | | Priority fee auto-escalation | โ Dynamic | โ Fixed | โ ๏ธ Tiered | โ None | โ None | | Open source / auditable | โ Core open | โ Closed | โ Closed | โ Yes | โ Closed | | Monthly cost | 0 (self-hosted) | $99โ$299/mo | $79โ$199/mo | 0 | Per-trade fee |
Cost math: At 20 snipes/day, Trojan at $199/mo costs you ~$0.33/snipe before gas. This script's cost is your RPC bill โ typically $30โ60/mo on a premium endpoint. The private build includes RPC failover logic so you can run Helius + Triton simultaneously.
๐๏ธ Live Architecture โ Data Flow
โโโโโโโโโโโโโโโโโโโโ WebSocket โโโโโโโโโโโโโโโโโโโโโโโโ
โ Solana RPC โ โโโโโโโโโโโโโโโโโโบ โ Pool Event Listener โ
โ (Helius/Triton) โ โโโโโโโโโโโโฆโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโ โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Pair Filter Engine โ
โ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโ โ
โ โ Mint Auth โ โ LP Burn % โ โ Token Age Gate โ โ
โ โ Validation โ โ Threshold โ โ (< 30s bypass) โ โ
โ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฆโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ PASS
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Jupiter V6 Quote + Swap Builder โ
โ GET /quote โโโบ POST /swap โโโบ versioned tx (ALTs) โ
โ versioned tx โโโบ compute budget โโโบ priority fee inject โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฆโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโ
โผ โผ โผ
RPC Node 1 RPC Node 2 RPC Node 3
(Primary) (Failover) (Staked)
โโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโ
โผ
First confirmation wins
Slot delta logged โ exit
Typical observed latency breakdown:
- Pool detection to quote request: ~2โ5ms
- Jupiter V6 quote + swap instructions: ~40โ60ms
- Transaction build + sign: ~3ms
- Broadcast to confirmation: ~80โ200ms (RPC-dependent)
๐ Key Features of the Solana New Pair Sniper Jupiter V6
- First-block targeting via WebSocket pool subscription, not polling
- Jupiter V6 native โ versioned transactions + ALT compression by default
- Pre-buy safety checks โ mint authority, freeze authority, LP burn threshold โ all evaluated before a single lamport moves
- Dynamic priority fee engine โ reads recent slot congestion and auto-escalates to stay competitive without overpaying
- Multi-endpoint broadcast โ same transaction fires to 3 RPC nodes simultaneously; first confirmation wins
- Paper trade mode โ full execution simulation with no on-chain spend, for strategy validation
- Structured JSON logging โ every snipe attempt logged with slot delta, fill price, and route metadata
๐ฆ Installation โ 5 Steps
Prerequisites: Node.js v18+, a funded Solana wallet keypair, a premium RPC endpoint (Helius or Triton recommended)
Step 1 โ Clone the repository
git clone https://github.com/leionion/solana-new-pair-sniper-jupiter-v6.git cd solana-new-pair-sniper-jupiter-v6
Step 2 โ Install dependencies
npm install
Step 3 โ Configure your environment
cp .env.example .env
Step 4 โ Edit .env with your settings
WALLETPRIVATEKEY=yourbase58privatekeyhere RPCENDPOINT=https://mainnet.helius-rpc.com/?api-key=YOURKEY RPCWEBSOCKET=wss://mainnet.helius-rpc.com/?api-key=YOURKEY JUPITERAPIKEY=yourjupiterapikeyhere # Free key from https://portal.jup.ag BUYAMOUNTSOL=0.15 SLIPPAGE_BPS=300 MAXPRIORITYFEE_LAMPORTS=2000000 MINLPBURN_PERCENT=90
Note: Jupiter's Metis Swap API requires an API key. Get a free key at portal.jup.ag.
Step 5 โ Start in paper trade mode first (strongly recommended)
npm run start -- --mode paper
Verify your slot delta numbers and filter logic are working before switching to live mode with --mode live.
โ๏ธ Configuration Reference
# config.yaml โ Solana New Pair Sniper v0.4.1
sniper: buyamountsol: 0.15 # SOL per snipe (not including priority fee) slippage_bps: 300 # 3% โ increase to 500 for micro-cap entries max_retries: 2 # tx resubmit attempts before abort filters: requiremintauthority_null: true # skip tokens with active mint authority requirefreezeauthority_null: true # skip tokens with freeze authority minlpburn_percent: 90 # skip pools with < 90% LP burned maxpoolage_ms: 3000 # ignore pools older than 3s (already sniped)
fees: priorityfeemode: dynamic # "fixed" | "dynamic" | "aggressive" baseprioritylamports: 500000 maxprioritylamports: 5000000 escalationmultiplier: 1.8 # applied if slotlag > 0
rpc: primary: "${RPC_ENDPOINT}" fallback_1: "" # optional second endpoint fallback_2: "" # optional third endpoint broadcast_parallel: true # fire all non-null endpoints simultaneously
logging: level: info # "debug" | "info" | "warn" log_file: ./logs/snipes.jsonl # structured JSONL output log_failures: true # log filtered-out pairs for tuning
๐บ๏ธ Roadmap
โ Shipped (v0.4.x)
- [x] Jupiter V6 versioned transaction integration
- [x] Pre-buy mint/freeze/LP burn safety checks
- [x] Dynamic priority fee engine
- [x] Paper trade simulation mode
- [x] Multi-RPC parallel broadcast
- [x] Structured JSONL logging with slot delta tracking
๐จ Active Development (v0.5.x)
- [ ] Pump.fun bonding curve snipe path (separate route logic)
- [ ] Configurable take-profit / stop-loss auto-exit
- [ ] Telegram alert integration for fill notifications
- [ ] Backtest engine against historical pool open data
๐ Planned (v0.6.x)
- [ ] Jito bundle support for MEV-protected entries
- [ ] Token social signal pre-filter (Twitter/X mentions velocity)
- [ ] Dashboard UI with live position tracking
- [ ] Multi-wallet fan-out for position size scaling
Features marked private build only in the full version: multi-wallet fan-out, Jito bundle routing, MEV protection, advanced exit logic.
๐ Security & Privacy Architecture
Your keys stay yours. This is a self-hosted script โ nothing is custodial.
- Private key โ stored only in your local
.envfile, never transmitted - Wallet signing โ happens in-process on your machine, no third-party signing service
- RPC calls โ standard Solana JSON-RPC to your chosen endpoint (Helius, Triton, QuickNode)
- Jupiter Metis API โ swap quotes and transaction building; free API key from portal.jup.ag required
- No telemetry โ zero analytics or usage reporting in this codebase
api.jup.ag.
๐ฏ Want the Full Private Build?
The public version demonstrates the core architecture. The private build is what serious traders run in production.
What's missing from this repo:
| Gap | Public Repo | Private Build | |---|---|---| | Multi-wallet fan-out | โ Single wallet | โ Up to 8 wallets, parallel | | MEV protection | โ Standard broadcast | โ Jito bundle routing | | Exit logic | โ Manual | โ TP/SL with trailing stop | | Priority fee model | โ Dynamic | โ Predictive (slot history model) | | Pump.fun path | โ | โ Separate bonding curve logic | | Support | Community | Direct async |
Who the private build is for:
- The DeFi trader running 10โ50 snipes/day who needs exits automated as well as entries โ manual selling at the right moment isn't sustainable
- The developer building a token launch strategy who wants auditable source code rather than a black-box bot with custodial access to their wallet
- The small fund operator who needs multi-wallet position splitting to stay under on-chain visibility thresholds
- The researcher who wants the raw JSONL logs and backtest engine to actually measure their edge before putting real SOL at risk
How to reach out:
Find me on GitHub: @leionion
When you message, mention:
- Your current setup โ what sniper or approach you're using now
- Your target โ new Raydium pairs, pump.fun launches, or both
- Your scale โ approximate daily snipe volume or SOL at risk
The traders who move in the first block aren't lucky. They built the infrastructure.
Built with TypeScript ยท Solana Web3.js ยท Jupiter V6 API ยท Helius RPC
First-block execution or it didn't happen.