GetNonce

Get the nonce of the currently connected wallet. Defauts to pending blockTag.

Usage

Call this method to get the nonce of the currently connected wallet.

var nonce = await sdk.Wallet.GetNonce();

Configuration

blockTag (optional)

The block tag to get the nonce for. Must be a string.

If no block tag is provided, the default is pending.

var nonce = await sdk.Wallet.GetNonce("latest");

Return Value

Returns the nonce as an int.