@somnia-chain/markets-sdk / index / IndexedBlockWait
Type Alias: IndexedBlockWait
IndexedBlockWait =
object
Defined in: packages/sdk/src/syncStatus.ts:189
What a completed SomniaMarketsClient.waitForIndexedBlock observed.
Properties
targetBlock
readonlytargetBlock:number
Defined in: packages/sdk/src/syncStatus.ts:191
Block the caller waited for.
latestProcessedBlock
readonlylatestProcessedBlock:number
Defined in: packages/sdk/src/syncStatus.ts:193
Processed height when the wait cleared; at or above targetBlock.
initialLagBlocks
readonlyinitialLagBlocks:number
Defined in: packages/sdk/src/syncStatus.ts:199
Blocks the indexer was short of the target at the FIRST poll, floored at zero — the lag the wait actually had to absorb. A chain row that had processed nothing counts as lag from block 0.
waitedMs
readonlywaitedMs:number
Defined in: packages/sdk/src/syncStatus.ts:204
Elapsed milliseconds from starting the wait through the metadata reply that cleared it, including the first request's latency.
polls
readonlypolls:number
Defined in: packages/sdk/src/syncStatus.ts:206
Metadata reads performed, including the one that cleared the wait.