Function generateNonceUsingLastBlockTimestamp

  • Generates a nonce using the most recent block index. Can be called directly or by specifiying the useBlockTimestampsForNonce flag in the createChallenge options. verifyChallenge also offers two flags: (verifyNonceUsingBlockTimestamps?: boolean; and verificationTimeLimit?: number;) that ensure timestamp of the block was recent when verifying.

    Parameters

    Returns Promise<any>

    Last block index / timestamp / hash to be used as the nonce

Generated using TypeDoc