Skip to content
function getSignatureNonce(ctx, params): Promise<bigint>;

Gets the current signature nonce for the contract, signer, and signature type identified by the provided GetSignatureNonceParams.

Parameters

ParameterTypeDescription
ctxSDKContextThe SDK context.
paramsGetSignatureNonceParamsThe necessary parameters.

Returns

Promise<bigint>

The current nonce.

Throws

UnsupportedSignatureTypeError if the provided signatureType is not a valid AnvilSignatureType.