Skip to content
docs

readEpoch

readEpoch(rpc, options?): Promise<NearEpoch>

Defined in: protocol-staking-liquid-near/src/epoch.ts:64

Reads the epoch clock. Falls back to TYPICAL_EPOCH_MS only when the epoch start blocks cannot be read.

NearRpc

ReadEpochOptions = {}

Promise<NearEpoch>