{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "eth_getTransactionCount",
  "params": [
    "0x407d73d8a49eeb85d32cf465507dd71d507100c1",
    "latest"
  ]
}
{
  "id": 1,
  "jsonrpc": "2.0",
  "result": "0x1"
}
Defined in the Ethereum JSON-RPC Specification
Returns the number of transactions sent from an address.

Parameters

address
string
required
The address to get the transaction count for (20 bytes).
blockParameter
string
required
Integer block number, or the string “latest”, “earliest” or “pending”.

Returns

result
string
A hexadecimal string representing the integer of the number of transactions sent from this address.
{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "eth_getTransactionCount",
  "params": [
    "0x407d73d8a49eeb85d32cf465507dd71d507100c1",
    "latest"
  ]
}
{
  "id": 1,
  "jsonrpc": "2.0",
  "result": "0x1"
}

Error Handling

CodeMessageDescription
-32602Invalid address or block parameterThe provided address or block parameter is invalid
4100Requested method not supportedThe method is not supported by the wallet
This value is used as the nonce for subsequent transactions from the address.