Coinbase Wallet SDK
eth_getTransactionCount
Get the number of transactions sent from an address
Defined in the Ethereum JSON-RPC Specification
Returns the number of transactions sent from an address.
Parameters
The address to get the transaction count for (20 bytes).
Integer block number, or the string “latest”, “earliest” or “pending”.
Returns
A hexadecimal string representing the integer of the number of transactions sent from this address.
Error Handling
Code | Message | Description |
---|---|---|
-32602 | Invalid address or block parameter | The provided address or block parameter is invalid |
4100 | Requested method not supported | The method is not supported by the wallet |
This value is used as the nonce for subsequent transactions from the address.