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.
Parameters
Section titled “Parameters”NearRpc
options?
Section titled “options?”ReadEpochOptions = {}
Returns
Section titled “Returns”Promise<NearEpoch>