Skip to content
docs

epochOfHeight

epochOfHeight(epoch, block): bigint

Defined in: protocol-staking-native-near/src/epoch.ts:102

The epoch a block belongs to, by height arithmetic from the current epoch’s start: exact except for a block within a few heights of a boundary that was skipped.

Pick<NearEpoch, "height" | "startBlock" | "length">

bigint

bigint