Minimal Anti Collusion Infrastructure (MACI) / currentBlockTimestamp
Function: currentBlockTimestamp()
currentBlockTimestamp(
provider
):Promise
<number
>
Defined in: packages/sdk/ts/utils/contracts.ts:19
Small utility to retrieve the current block timestamp from the blockchain
Parameters
provider
Provider
the provider to use to interact with the chain
Returns
Promise
<number
>
the current block timestamp