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.
Parameters
Section titled “Parameters”Pick<NearEpoch, "height" | "startBlock" | "length">
bigint
Returns
Section titled “Returns”bigint