API ReferenceTransactions, wallets, and signaturesFunction
getSignatureNonce()
function getSignatureNonce(ctx, params): Promise<bigint>;Gets the current signature nonce for the contract, signer, and signature type identified by the provided GetSignatureNonceParams.
Parameters
| Parameter | Type | Description |
|---|---|---|
ctx | SDKContext | The SDK context. |
params | GetSignatureNonceParams | The necessary parameters. |
Returns
Promise<bigint>
The current nonce.
Throws
UnsupportedSignatureTypeError if the provided signatureType is not a valid AnvilSignatureType.