@armada/sdk / index / IndexerEventSource
Class: IndexerEventSource
Defined in: src/sync/event-source.ts:51
Native quick-sync fast path: fetch pre-indexed events from {baseUrl}/v2/quick-sync/{chainId} and validate them via parseQuickSync. Reports the indexer's syncedThroughBlock so the caller RPC-covers any tail past it. Batches from here are NOT yet trusted — the caller must verify the resulting tree against the on-chain root before acceptance (SPEC §4.4 decision #3).
Implements
Constructors
Constructor
new IndexerEventSource(
options):IndexerEventSource
Defined in: src/sync/event-source.ts:56
Parameters
options
Returns
IndexerEventSource
Methods
getEvents()
getEvents(
fromBlock,toBlock,onProgress?):Promise<EventBatch>
Defined in: src/sync/event-source.ts:62
onProgress (when supplied) is called with the highest block covered as the fetch chunks the range.
Parameters
fromBlock
number
toBlock
number
onProgress?
(coveredThroughBlock) => void
Returns
Promise<EventBatch>