This method retrieves the transaction count (i.e., nonce) for a specified wallet address on a given chain.
BigInteger transactionCount = await wallet.GetTransactionCount(chainId, address);
An instance of IThirdwebWallet. This represents the wallet for which you want to retrieve the transaction count.
IThirdwebWallet
The chain ID from which you want to retrieve the transaction count.
The wallet address for which you want to retrieve the transaction count.
The block tag to retrieve the transaction count at. Defaults to "pending". You can set this to "latest" or "earliest".
"pending"
"latest"
"earliest"
The method returns a BigInteger representing the transaction count (nonce) of the wallet.
BigInteger