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-eventsSwaps/liquidity events. swap frames include sender, transaction-sender origin (null outside tx-origin coverage), and transactionHash.
| Parameter | In | Required | Notes |
|---|---|---|---|
tokens | query | no | Comma-separated token watchlist |
pools | query | no | Comma-separated 0xcontract (V2/V3; V4 implies zero PoolId) or V4 0xmanager:0xpoolid |
wallets | query | no | Comma-separated wallet watchlist |
launchpads | query | no | Comma-separated canonical configuration names, e.g. trench, flap; matches only swaps on that pad's shared curve/portal contract |
all | query | no | true: all topic events, ignoring other selectors; satisfies required selection |
min_leg_magnitude | query | no | Decimal-string floor on swap_magnitude, the larger raw pool-side delta; applied after selector matching |
after_sequence | query | no | Last 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/blocksNew canonical blocks.
| Parameter | In | Required | Notes |
|---|---|---|---|
after_sequence | query | no | Last delivered sequence; bounded durable catch-up |
Stream Candles
GET /stream/candlesLive 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.
| Parameter | In | Required | Notes |
|---|---|---|---|
select | query | yes | Comma-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/creationsNew contract/token creations; bounded watchlists.
| Parameter | In | Required | Notes |
|---|---|---|---|
contracts | query | no | Created addresses |
wallets | query | no | Recovered creators, when known |
all | query | no | true: all events, ignoring other selectors; satisfies required selection |
after_sequence | query | no | Last delivered sequence; bounded durable catch-up |
Heads
GET /stream/headsCanonical head movement.
Launches
GET /stream/launchesNew, graduating, graduated transitions. launch_new includes normalized metadataUri, imageUri, imageProvenance. Watchlists are bounded.
| Parameter | In | Required | Notes |
|---|---|---|---|
tokens | query | no | Token watchlist |
launchpads | query | no | Included launchpads |
exclude_launchpads | query | no | Excluded launchpads; bounded post-match bitset, rather than inverted-index key. Exclusion wins after every match, including overlapping includes |
all | query | no | true: all events, ignoring other selectors; satisfies required selection |
after_sequence | query | no | Last delivered sequence; bounded durable catch-up |
Logs
GET /stream/logsNew logs; bounded watchlists.
| Parameter | In | Required | Notes |
|---|---|---|---|
addresses | query | no | Emitting contracts |
topics | query | no | topic0 event signatures |
all | query | no | true: all events, ignoring other selectors; satisfies required selection |
after_sequence | query | no | Last delivered sequence; bounded durable catch-up |
Multiplex Subscribe
GET /stream/subscribeOne cross-topic connection: connected, then per-topic stalled/resumed control frames.
| Parameter | In | Required | Notes |
|---|---|---|---|
select | query | yes | Comma-separated topic:dimension:value or topic:all; e.g. amm_events:token:0xAAA...,transfers:wallet:0xBBB...,blocks:all |
min_leg_magnitude | query | no | AMM filter defined above; error without amm_events selection |
resume | query | no | Comma-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}/selectorsModify an open topic subscription without reconnecting. Removals precede additions, avoiding transient selector-limit overflow.
| Parameter | In | Required | Notes |
|---|---|---|---|
topic | path | yes | Stream topic name |
id | path | yes | Subscription ID from GET /stream/subscribe or a single-topic x-subscription-id response header |
add | query | no | Comma-separated dimension[:value]; subscribe grammar without topic prefix |
remove | query | no | Same grammar; applied before additions |
Transactions
GET /stream/transactionsNew transactions; bounded watchlist.
| Parameter | In | Required | Notes |
|---|---|---|---|
wallets | query | no | Transaction origin or recipient |
all | query | no | true: all events, ignoring other selectors; satisfies required selection |
after_sequence | query | no | Last delivered sequence; bounded durable catch-up |
Transfers
GET /stream/transfersNew token transfers; transfer frames include transactionHash. Watchlists are bounded.
| Parameter | In | Required | Notes |
|---|---|---|---|
tokens | query | no | Token watchlist |
wallets | query | no | Either transfer leg |
all | query | no | true: all events, ignoring other selectors; satisfies required selection |
after_sequence | query | no | Last delivered sequence; bounded durable catch-up |