NearEpoch
Defined in: protocol-staking-native-near/src/types.ts:158
The epoch clock. Heights are block heights; times are unix ms estimates.
Properties
Section titled “Properties”block:
bigint
Defined in: protocol-staking-native-near/src/types.ts:166
Latest final block height.
blocksLeft
Section titled “blocksLeft”blocksLeft:
bigint
Defined in: protocol-staking-native-near/src/types.ts:167
endsAt
Section titled “endsAt”endsAt:
number
Defined in: protocol-staking-native-near/src/types.ts:173
Unix ms estimate of the epoch’s end.
epochMs
Section titled “epochMs”epochMs:
number
Defined in: protocol-staking-native-near/src/types.ts:171
Measured duration of the previous epoch, ms (~6.9 h).
height
Section titled “height”height:
bigint
Defined in: protocol-staking-native-near/src/types.ts:160
epoch_height.
length
Section titled “length”length:
bigint
Defined in: protocol-staking-native-near/src/types.ts:164
Epoch length in block heights (43 200).
startBlock
Section titled “startBlock”startBlock:
bigint
Defined in: protocol-staking-native-near/src/types.ts:162
First block height of the epoch.
startedAt
Section titled “startedAt”startedAt:
number
Defined in: protocol-staking-native-near/src/types.ts:169
Unix ms of the epoch’s first block.