@somnia-chain/markets-sdk / index / IndexerSyncStatus
Type Alias: IndexerSyncStatus
IndexerSyncStatus =
object
Defined in: packages/sdk/src/syncStatus.ts:15
The indexer's own sync state for one chain (envio chain_metadata). Compare
latestProcessedBlock to blockHeight to gauge indexer lag.
Properties
chainId
chainId:
number
Defined in: packages/sdk/src/syncStatus.ts:17
Chain id the row describes.
latestProcessedBlock
latestProcessedBlock:
number|null
Defined in: packages/sdk/src/syncStatus.ts:19
Last block the indexer fully processed; null before the first block lands.
blockHeight
blockHeight:
number|null
Defined in: packages/sdk/src/syncStatus.ts:21
Chain head height as the indexer last saw it; null until first fetched.
numEventsProcessed
numEventsProcessed:
number|null
Defined in: packages/sdk/src/syncStatus.ts:27
Lifetime count of events the indexer has processed on this chain. null on
the rare row where envio has not populated the counter yet — Hasura declares
the column nullable, so this is the wire's shape, not a defensive guess.