Base Benchmark: BlockRazor achieved a 67.75% inclusion win rate.
View Results
Sign in
Create Account

Solana sniper bot infrastructure

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.

From new pool to first eligible order
  1. Receive the pool signal

    Timestamp first receipt and retain the source slot, transaction signature and instruction index.

  2. Decode the event

    Identify the DEX instruction. Read the pool at or after its source slot to check the pair, opening time, swap status and available liquidity.

  3. Build the order

    Quote the intended size, enforce minimum output and expiry, then construct the swap with a recent blockhash.

  4. Sign locally

    Claim one order per strategy and pool. Sign with your execution wallet and persist the signature and bytes before sending.

  5. Submit and locate

    Send the signed bytes. Check execution status, landed slot and transaction index using the signature.

When can a new pool accept a swap?

Pool creation
Decode initialization for the expected DEX and mint pair. Save the pool address and opening parameters so later updates can be matched to this pool.
Liquidity deposit
Identify the DEX deposit instruction, then read the updated liquidity and quote your intended size. A vault transfer alone cannot establish that the pool has usable liquidity.
Trading opens
Check the DEX’s swap flag and any opening slot or time. Some pools open during initialization. Others open on a schedule with no second transaction, so schedule a fresh state read before ordering.

Choose services by chain

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.

BSC

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.

Explore all supported chains →

Gate a Solana order on pool state

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.

Reconstruct transactions from shreds →

How to test your implementation

Signal arrival
Run two receivers on the same host and match the same signature and instruction at the same commitment. Measure the difference in first receipt times and report p50, p95 and unmatched events. This measures the lead between feeds.
Submission latency
On one monotonic clock, mark receipt, decode, build, sign, first send and endpoint acknowledgement. Report receipt-to-send and send-to-ack p50 and p95 separately. Keep region, fee settings and transaction size comparable.
On-chain outcome
At a fixed confirmation level and cutoff, divide unique orders that executed successfully by unique orders submitted. For each landed order, record the slot distance from the opening signal and the transaction index. Count execution errors, expiries and unresolved orders separately.

FAQ

01Why did a swap fail after I detected a pool?

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.

02Why did my transaction land late after a fast acknowledgement?

Compare local signing and send timestamps with the landed slot. Record blockhash age, fees, tips and region for each trial before changing the endpoint.

03Which parts of a crypto sniping bot does BlockRazor provide?

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.