Skip to content
Indexer AccessAPI reference

Stream routes

Live subscriptions to heads, blocks, transactions, logs, transfers, AMM events, creations, launches and live candles.

11 routes · Prefix: /index/v1/{chain} · Header: x-api-key.

Shared contract. Streams: confirmation and recovery.

Per-key connection ceiling: 8 by default; excess returns 429 without Retry-After. One multiplexed connection counts once regardless of topics/selectors.

Durable IDs bind topic/store generation. Idle connections send keep-alive comments; lag events require REST backfill. Single-topic replay is row-bounded: explicit after_sequence overrides Last-Event-ID; without it, the header supplies the cursor. Backfill larger gaps before resuming.

AMM Events

GET /stream/amm-events

Swaps/liquidity events. swap frames include sender, transaction-sender origin (null outside tx-origin coverage), and transactionHash.

ParameterInRequiredNotes
tokensquerynoComma-separated token watchlist
poolsquerynoComma-separated 0xcontract (V2/V3; V4 implies zero PoolId) or V4 0xmanager:0xpoolid
walletsquerynoComma-separated wallet watchlist
launchpadsquerynoComma-separated canonical configuration names, e.g. trench, flap; matches only swaps on that pad's shared curve/portal contract
allquerynotrue: all topic events, ignoring other selectors; satisfies required selection
min_leg_magnitudequerynoDecimal-string floor on swap_magnitude, the larger raw pool-side delta; applied after selector matching
after_sequencequerynoLast delivered sequence; bounded durable catch-up

Watchlists are bounded. min_leg_magnitude is the sole non-invertible filter. Units follow the larger leg's base units, without quote selection or decimal scaling; identical thresholds have asset-dependent economic sizes.

Blocks

GET /stream/blocks

New canonical blocks.

ParameterInRequiredNotes
after_sequencequerynoLast delivered sequence; bounded durable catch-up

Stream Candles

GET /stream/candles

Live candles per named series (select=token:0x..:1m[:0xquote], pool:0x..:1h). On connect: a snapshot of the previous and forming buckets, for whichever of them traded; a series with no recent trades gets only keep-alives. Then update at most once per 250 ms per series, and close (final: true) when the head leaves a bucket. candle is the REST compact row. No resume cursor.

Multiplexed candles uses the same selectors and supports mutation.

ParameterInRequiredNotes
selectqueryyesComma-separated token:0x<token>:<frame>[:0x<quote>] or pool:<id>:<frame>. Pool ID: address or V4 0x<manager>:0x<poolId>. Frames: REST-supported widths

Examples: select=token:0x..:1m[:0xquote], pool:0x..:1h.

Creations

GET /stream/creations

New contract/token creations; bounded watchlists.

ParameterInRequiredNotes
contractsquerynoCreated addresses
walletsquerynoRecovered creators, when known
allquerynotrue: all events, ignoring other selectors; satisfies required selection
after_sequencequerynoLast delivered sequence; bounded durable catch-up

Heads

GET /stream/heads

Canonical head movement.

Launches

GET /stream/launches

New, graduating, graduated transitions. launch_new includes normalized metadataUri, imageUri, imageProvenance. Watchlists are bounded.

ParameterInRequiredNotes
tokensquerynoToken watchlist
launchpadsquerynoIncluded launchpads
exclude_launchpadsquerynoExcluded launchpads; bounded post-match bitset, rather than inverted-index key. Exclusion wins after every match, including overlapping includes
allquerynotrue: all events, ignoring other selectors; satisfies required selection
after_sequencequerynoLast delivered sequence; bounded durable catch-up

Logs

GET /stream/logs

New logs; bounded watchlists.

ParameterInRequiredNotes
addressesquerynoEmitting contracts
topicsquerynotopic0 event signatures
allquerynotrue: all events, ignoring other selectors; satisfies required selection
after_sequencequerynoLast delivered sequence; bounded durable catch-up

Multiplex Subscribe

GET /stream/subscribe

One cross-topic connection: connected, then per-topic stalled/resumed control frames.

ParameterInRequiredNotes
selectqueryyesComma-separated topic:dimension:value or topic:all; e.g. amm_events:token:0xAAA...,transfers:wallet:0xBBB...,blocks:all
min_leg_magnitudequerynoAMM filter defined above; error without amm_events selection
resumequerynoComma-separated topic:v1.topicNamespace.sequence; bounded per-topic catch-up, only for selected topics

Topics: amm_events, blocks, transactions, logs, transfers, creations, launches, candles. Dimensions: token, pool, wallet, launchpad, address, topic0, all. Pools accept 0xcontract or V4 0xmanager:0xpoolid.

Candle selectors use /stream/candles grammar; candles cannot appear in resume. Only resume resumes multiplexed connections. A lone Last-Event-ID opens live with an in-band unsupported-header notice.

Mutate Selectors

POST /stream/subscribe/{topic}/{id}/selectors

Modify an open topic subscription without reconnecting. Removals precede additions, avoiding transient selector-limit overflow.

ParameterInRequiredNotes
topicpathyesStream topic name
idpathyesSubscription ID from GET /stream/subscribe or a single-topic x-subscription-id response header
addquerynoComma-separated dimension[:value]; subscribe grammar without topic prefix
removequerynoSame grammar; applied before additions

Transactions

GET /stream/transactions

New transactions; bounded watchlist.

ParameterInRequiredNotes
walletsquerynoTransaction origin or recipient
allquerynotrue: all events, ignoring other selectors; satisfies required selection
after_sequencequerynoLast delivered sequence; bounded durable catch-up

Transfers

GET /stream/transfers

New token transfers; transfer frames include transactionHash. Watchlists are bounded.

ParameterInRequiredNotes
tokensquerynoToken watchlist
walletsquerynoEither transfer leg
allquerynotrue: all events, ignoring other selectors; satisfies required selection
after_sequencequerynoLast delivered sequence; bounded durable catch-up

View this page as Markdown