getNextNonce
getNextNonce(
did
):Promise
<BN
>
Returns the next nonce to use to sign a DID operation. Normally, this function should not be called directly by SDK users. Nevertheless, in advanced cases where there might be race conditions, this function can be used as the basis on which to build parallel operation queues.
Parameters
• did: did:cord:3${string}
The DID data.
Returns
Promise
<BN
>
The next valid nonce, i.e., the nonce currently stored on the blockchain + 1, wrapping around the max value when reached.