Skip to main content
New pools appear faster than a naive loop can poll, half of them are scams, and the feed that tells you a token exists says nothing about whether you can safely buy it. This guide builds the detection and gating layer for a Solana new token sniper, and works whether you have a WebSocket or not: streaming lowers latency, but every stage also runs on REST.

TL;DR

  • Detect new pools and listings over REST or WebSocket
  • Gate every hit for rug risk before it reaches a trade decision
  • Rank survivors by early volume and unique wallets
  • Watch open positions for whale prints and dumps
One rule drives the whole design: a freshly detected token never reaches the trade UI until it clears the security gate. Detection is the easy, noisy part. The gate is what stops you buying a honeypot.
Reference architecture for a Solana New Token Sniper flowing one way from detection through a security gate to ranking and monitoring All requests share the base URL https://public-api.birdeye.so, authenticate with the X-API-KEY header, and select the network with x-chain: solana.
Detection over REST and the security gate run from the Lite or Starter package up. The WebSocket variants are a Premium package upgrade for lower latency, not a requirement.

The four stage pipeline

1

Detect new token launches

Poll for new listings, or subscribe to a live stream if your package supports it. Track the newest block_unix_time you have already seen on REST, and treat anything newer as a fresh hit.Endpoint: GET /defi/v2/tokens/new_listing
On a Premium package, stream instead of poll for the lowest latency. Open one socket and subscribe to new pairs, new listings, or both.
A NEW_PAIR_DATA event carries the pool sides, source, and transaction hash, but no risk data at all. SUBSCRIBE_NEW_PAIR does not deliver Openbook pairs, while SUBSCRIBE_TOKEN_NEW_LISTING has broader source coverage, so subscribe to both for full reach.
2

Gate every hit for rug risk

A freshly detected token is safe to show only after it clears a security check. Read the mint and freeze authority, mutable metadata, liquidity, and holder concentration from token_security, token_creation_info, token_overview, and holder/v1/distribution.Endpoint: GET /defi/token_security
Solana liquidity comes from the liquidity field on token_overview, not exit liquidity, since that endpoint is Base only. holder/v1/distribution takes the token as token_address, not address.

Rug Checker

The full five check gate, including mint and burn history and holder behavior tags, with the exact field list per chain.
3

Rank survivors by early momentum

A single token_overview call returns price, liquidity, market cap, and per timeframe metrics including unique wallets and buy and sell volume. Request only the short frames you score on with the frames parameter to keep payloads small.To refresh a live candidate list without one request per token, batch up to 100 addresses through multi_price.Endpoint: POST /defi/multi_price
Tokens that are unknown or unsupported come back as null on their key rather than as an error. Guard each result before reading a price. One refresh tick is one request, so cost stays flat as the watchlist grows.
4

Watch positions for the dump

Once a token is on the watchlist, price movement and large trade alerts matter most. Poll the latest candles and trades filtered by volume on any paid tier from Lite or Starter up, or stream for the lowest latency on a Premium package.Endpoint: GET /defi/v3/token/txs-by-volume

Whale Transaction Tracker

Full whale detection pipeline, with buy and sell pressure split out.

Token Price Alert Monitor

Absolute and percent alerts confirmed on a closed candle.

Watch your credit budget

Polling for detection and monitoring is credit hungry, so wire this in from day one. Endpoint: GET /utils/v1/credits
The response splits usage into REST api and WebSocket ws, plus remaining credits. Poll it hourly and widen your detection and monitor intervals automatically when remaining credits fall below a safe threshold, rather than hitting a 429 mid launch.

Before you ship

  • No detected token reaches the trade UI before it clears the security gate.
  • Solana liquidity is read from token_overview, since exit-liquidity is Base only.
  • token_address is used for holder/v1/distribution, and address for the defi endpoints.
  • null results from multi_price are handled explicitly, not assumed away.
  • Detection and monitor intervals back off automatically when credits run low.

FAQ

Yes. Detection and monitoring both have REST paths. Detection runs on any paid tier, and the security gate and whale feed need the Lite or Starter package or higher. The WebSocket streams are a lower latency upgrade available from the Premium package up, not a requirement.
Set meme_platform_enabled=true on new_listing or on SUBSCRIBE_TOKEN_NEW_LISTING to include pump.fun and similar Solana launchpads. SUBSCRIBE_NEW_PAIR does not deliver Openbook pairs, so subscribe to new token listing as well for fuller coverage.
Detection and risk are separate concerns by design. A NEW_PAIR_DATA event tells you a pool exists, not whether it is safe. Every hit must pass the security gate, which pulls token security, creation info, liquidity, and holder distribution before the token is shown.
That is a complete detect, gate, rank, and watch pipeline for catching new Solana launches.