Skip to content
docs

NearEpoch

Defined in: protocol-staking-native-near/src/types.ts:158

The epoch clock. Heights are block heights; times are unix ms estimates.

block: bigint

Defined in: protocol-staking-native-near/src/types.ts:166

Latest final block height.


blocksLeft: bigint

Defined in: protocol-staking-native-near/src/types.ts:167


endsAt: number

Defined in: protocol-staking-native-near/src/types.ts:173

Unix ms estimate of the epoch’s end.


epochMs: number

Defined in: protocol-staking-native-near/src/types.ts:171

Measured duration of the previous epoch, ms (~6.9 h).


height: bigint

Defined in: protocol-staking-native-near/src/types.ts:160

epoch_height.


length: bigint

Defined in: protocol-staking-native-near/src/types.ts:164

Epoch length in block heights (43 200).


startBlock: bigint

Defined in: protocol-staking-native-near/src/types.ts:162

First block height of the epoch.


startedAt: number

Defined in: protocol-staking-native-near/src/types.ts:169

Unix ms of the epoch’s first block.