@somnia-chain/markets-sdk


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

Interface: TailStatus

Defined in: packages/sdk/src/store.ts:74

Live-tail health snapshot — how current the store's getLive* reads are: block coverage (snapshot/last/head), socket state, and active watch count.

Properties

mode

mode: TailMode

Defined in: packages/sdk/src/store.ts:76

Current data-source mode ("init" until the first watch is hydrated).


snapshotBlock

snapshotBlock: number

Defined in: packages/sdk/src/store.ts:81

Block the most recent indexer snapshot was consistent to (a watch's seam covers snapshotBlock+1..)


lastBlock

lastBlock: number

Defined in: packages/sdk/src/store.ts:83

Highest block the local tail has materialized


headBlock

headBlock: number

Defined in: packages/sdk/src/store.ts:85

Latest chain head observed over the WS


wsConnected

wsConnected: boolean

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

Whether the chain WS subscriptions are currently delivering


watchCount

watchCount: number

Defined in: packages/sdk/src/store.ts:92

Active market watches (pools currently subscribed, incl. an all-markets watch's set). 0 → the tail is idle and no socket is held for it.