Skip to main content
This recipe shows you how to build a token page that shows what a token is worth, who holds it, and what is trading now. You fill each section from one set of REST requests, then keep the page live with two stream subscriptions.

1. Subscribe

Open the stream and subscribe before you read the snapshot, so that no change is missed between the request and the subscription. Wait for both acks; each ack always arrives before the first update of its subscription. See Initial snapshot.

2. Read the snapshot

Read the token object and the latest trades in parallel.

3. Apply updates

Streamed trades include flags and platforms when they are present, so you can show wallet badges on live trades immediately.

4. Render the sections

Show the native value next to the USD value for traders who think in SOL, BNB, ETH or HYPE.

Holders and risk

You choose the thresholds. Every Pct field uses a 0–100 scale, and the glossary defines each holder group.

Security

A high sellTaxBps is the main sign of a honeypot. …Bps fields are in basis points. security.rugPct is "0" on every token, so do not show it.

Holders list

The token object contains the holder groups, not the holders. To list the holders:
  1. Subscribe to spot.holders with { "chain": "solana", "token": address, "period": "lifetime" }, and buffer its updates.
  2. Read GET /v1/holders with tokens, chains, the same period, and a limit of up to 150. To list more holders, page with the series’ nextCursor.
  3. Apply each update by address: replace the row, and remove it when its balance is 0. A streamed row has no rank, so sort by balance in your client.

Launchpad status

  • While graduatedAt is null and bondingCurvePct is set, show a progress bar based on bondingCurvePct.
  • Once graduatedAt is set, show the DEX the token graduated to from graduatedToDex.
metadata.website, metadata.twitter, metadata.telegram and metadata.discord can each be null. Hide any link that is null.

Next steps