@somnia-chain/markets-sdk / index / BlockTimestampResolver
Type Alias: BlockTimestampResolver
BlockTimestampResolver = (
blockNumber) =>Promise<bigint>
Defined in: packages/sdk/src/activity.ts:562
Reads a block's timestamp from the chain.
The block-scoped reads need an anchor the indexer can serve from — no block column is indexed — and the block's own timestamp is it. This module stays indexer-only, so the owner injects the one chain read it needs rather than the module reaching for a transport of its own.
Parameters
blockNumber
bigint
Returns
Promise<bigint>