Skip to content

getCurrentEpoch

function getCurrentEpoch(provider): Promise<bigint>;

Defined in: packages/synapse-sdk/src/utils/epoch.ts:109

Internal

Get the current epoch from the blockchain This is an internal utility, not part of the public API

ParameterTypeDescription
providerProviderThe ethers provider to query

Promise<bigint>

The current epoch as a bigint