Solana
For a SOL sniper bot with a local shred decoder, start with Shred Stream. Use Geyser Stream for program-filtered transaction updates. Your crypto sniper application checks pool state, signs a swap and submits it with Send Transaction.
A crypto sniper bot watches for a new trading pair and submits a swap as soon as the pool can fill it. On Solana, pool creation, the first liquidity deposit and the opening slot can be separate events. Use Shred or Geyser data to detect the launch, then check the pool’s swap status and quote before signing.
Timestamp first receipt and retain the source slot, transaction signature and instruction index.
Identify the DEX instruction. Read the pool at or after its source slot to check the pair, opening time, swap status and available liquidity.
Quote the intended size, enforce minimum output and expiry, then construct the swap with a recent blockhash.
Claim one order per strategy and pool. Sign with your execution wallet and persist the signature and bytes before sending.
Send the signed bytes. Check execution status, landed slot and transaction index using the signature.
For a SOL sniper bot with a local shred decoder, start with Shred Stream. Use Geyser Stream for program-filtered transaction updates. Your crypto sniper application checks pool state, signs a swap and submits it with Send Transaction.
Watch Public Mempool for pending calls to your target factory or pool. Add Private Mempool for launch signals visible in the authorized fields of private RPC order flow. Before signing, read the pool on-chain to verify liquidity and swap status. Submit the signed order with Broadcast Tx.
Start with one supported DEX program. Decode its pool initialization, liquidity and opening events with the matching program version. Feed each candidate into the same handler so a pool that opens after initialization can be checked again. For a time-based opening, schedule a fresh read at the opening time.
// Application pseudocode · Solana
onPoolEvent(async (event) => {
const pool = await readPoolAtOrAfter(event.pool, event.slot);
if (!pool.swapsOpen || !hasRequiredLiquidity(pool)) return;
const quote = await quoteExactIn(pool, policy.inputAmount);
if (!policy.accepts(quote, event.slot)) return;
const key = [strategyId, pool.address, "launch"].join("/");
await submitOnce(key, () => buildAndSign(quote));
});Here submitOnce is an application helper. It atomically claims the pool key, persists the signed bytes and signature before sending, and reconciles that signature after a timeout. In a replay, initialization with swaps closed should send zero orders. A later opening with adequate liquidity should create one intent, even if delivered twice.
Inspect the DEX error and the account state used for the quote. A future opening time, disabled swaps or unfunded vault can all follow a valid initialization.
Compare local signing and send timestamps with the landed slot. Record blockhash age, fees, tips and region for each trial before changing the endpoint.
BlockRazor provides Solana data feeds for detecting pool events and a submission endpoint for signed transactions. Your application chooses the DEX programs and pairs to watch, checks liquidity and minimum output, and signs with your wallet. Use the resulting signature to measure how many slots elapsed between opening and execution.