Skip to main content

Indexer Samples

A reliable indexer combines HTTP backfill and WebSocket live sync. Use getSignaturesForAddress for history, logsSubscribe for live events, slot tracking for ordering, and finalized for durable checkpoints.

ConcernPattern
BackfillPage backwards with before cursors.
Live syncSubscribe with logsSubscribe.
Slot trackingStore slot with each event and reconcile gaps.
FinalityProcess confirmed; commit permanent state at finalized.
warning

WebSocket streams are not historical replay. Resume from HTTP cursors after restart.