@somnia-chain/markets-sdk


@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

readonly targetBlock: number

Defined in: packages/sdk/src/syncStatus.ts:191

Block the caller waited for.


latestProcessedBlock

readonly latestProcessedBlock: number

Defined in: packages/sdk/src/syncStatus.ts:193

Processed height when the wait cleared; at or above targetBlock.


initialLagBlocks

readonly initialLagBlocks: 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

readonly waitedMs: 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

readonly polls: number

Defined in: packages/sdk/src/syncStatus.ts:206

Metadata reads performed, including the one that cleared the wait.