@somnia-chain/markets-sdk


@somnia-chain/markets-sdk / index / IndexerFreshness

Type Alias: IndexerFreshness

IndexerFreshness = IndexerSyncStatus & object

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

Indexer metadata compared to an independently requested chain head.

Type Declaration

independentHead

readonly independentHead: IndependentHead

Independent RPC observation. RPC recency itself is not asserted.

processedBlockTimestamp

readonly processedBlockTimestamp: bigint | null

Processed block's Unix time; null when the processed height is unknown.

lagBlocks

readonly lagBlocks: bigint | null

Independent head minus processed height, clamped to zero.

lagSeconds

readonly lagSeconds: bigint | null

Difference between chain timestamps in seconds, clamped to zero.

reportedLagBlocks

readonly reportedLagBlocks: bigint | null

Indexer's own reported head minus processed height, clamped to zero.

observedAt

readonly observedAt: number

Wall-clock completion time in milliseconds.