@armada/sdk / sync / EventSource
Interface: EventSource
Defined in: src/sync/index.ts:21
Pluggable event source (SPEC §4.4, decision #3). The default RPC source (getLogs → decode) is the source of truth; an optional indexer source (native /v2/quick-sync) is a fast path whose batches are verified against on-chain roots before acceptance, falling back to RPC on any mismatch.
Methods
getEvents()
getEvents(
fromBlock,toBlock,onProgress?):Promise<EventBatch>
Defined in: src/sync/index.ts:23
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>