getNonce

suspend fun getNonce(network: Network, address: String): Result<BigInteger>

Get the nonce (transaction count) for an address on a network.

For EVM chains, this is the number of transactions sent from the address. Used to prevent replay attacks and ensure transaction ordering.

Return

The nonce as BigInteger

Parameters

network

The network to query

address

The wallet address