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
Parameters
Section titled “Parameters”Parameter | Type | Description |
---|---|---|
provider | Provider | The ethers provider to query |
Returns
Section titled “Returns”Promise
<bigint
>
The current epoch as a bigint