Skip to content
Indexer Access

Streams

Live subscriptions to heads, blocks, transactions, logs, transfers, AMM events, creations and launches, with filters you can change without reconnecting.

Live subscriptions publish new records alongside snapshot-based reads.

Topics

TopicEmits
headsCanonical head movement
blocksNew canonical blocks
transactionsNew transactions
logsNew logs
transfersNew token transfers
amm-eventsNew swaps and liquidity events
creationsNew contract and token creations
launchesLaunch lifecycle transitions: new, graduating, graduated
candlesLive candle state per named token or pool series: a snapshot on connect, then updates and a final close per bucket

Topics isolate slow consumers. Each has a single-topic /stream/ route; all except heads support /stream/subscribe. AMM spelling: /stream/amm-events path, amm_events multiplexed select/resume topic.

One connection, several topics

GET /stream/subscribe multiplexes topics. Change an open subscription's filters without reconnecting or creating a reconnect gap:

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

Confirmation

Speculative observations precede execution and may revert. Confirmed events pass receipt/root verification. Require confirmed records for confirmation-dependent actions; early observations support speculative live views. See overview.

Recovering after a disconnect

Durable SSE id:: v1.<namespace>.<sequence>, bound to topic/store. Persist only after durable application processing.

RouteResume with
Single-topic streamsafter_sequence=<sequence> (the number at the end of the ID), or the full ID in the Last-Event-ID header when after_sequence is absent
/stream/subscriberesume=<topic>:<full ID>, one entry per topic. Last-Event-ID alone is not honoured here

Browser EventSource automatically resends Last-Event-ID. Unusable headers (bare numbers, wrong topics, or any header on multiplexed subscribe) open live with initial event: resume_unsupported, identifying the supported resume form.

  • Heads: non-durable; a reconnect across an API restart reports a gap.
  • Candles: no resume cursor; candles in resume returns 400. Each connection opens with a snapshot of the previous and forming bucket of each selected series, only for buckets that traded. A quiet series gets only keep-alives until its next trade, so silence means no recent trades, not a bad selector (an invalid selector gets 400).
  • Slow/incomplete catch-up: event: lag names the last delivered sequence.
  • Explicit cursor below retention: after_sequence/resume returns 400 with the lowest retained sequence.
  • Header below retention: opens live with initial event: lag, reason: resume_cursor_below_retention_floor, requested sequence, and retentionFloor. This avoids browser EventSource stopping retries after 4xx.

Backfill every gap through indexed reads, then reopen. Sequence gaps remain unhealthy until canonical blocks/receipts are reconciled.

View this page as Markdown