POST
/
3997273fc956a67dc6982384500e669e
curl --request POST \
  --url https://ronin-mainnet.core.chainstack.com/3997273fc956a67dc6982384500e669e \
  --header 'Content-Type: application/json' \
  --data '{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "eth_getTransactionCount",
  "params": [
    "0xa459322a949b97c1cbcf3c82dfc4de9fefc6fb7c",
    "latest"
  ]
}'
{
  "jsonrpc": "<string>",
  "id": 123,
  "result": "<string>"
}

The eth_getTransactionCount method returns the number of transactions sent from a specified address. This count includes the transaction index position in the block.

Get you own node endpoint today

Start for free and get your app to production levels immediately. No credit card required.

You can sign up with your GitHub, X, Google, or Microsoft account.

Parameters

  • address: The address to get the number of transactions from.
  • blockParameter (optional): This can be a hexadecimal block number, or the strings “latest”, “earliest”, or “pending”, indicating the state from which to count the transactions.

Response

  • result: The number of transactions sent from the address, returned as a hexadecimal number.

Use case

This method is useful for determining the nonce for the next transaction to be sent from the specified address. The nonce ensures transactions are processed in order and prevents double-spending and replay attacks.

Body

application/json
id
integer
default:1
jsonrpc
string
default:2.0
method
string
default:eth_getTransactionCount
params
string[]

Response

200 - application/json
Number of transactions sent from the address
jsonrpc
string
id
integer
result
string