eth_getTransactionCount - Ethereum

Shows the number of transactions that were sent from one stated address

How to Use the eth_getTransactionCount Method


DATA, 20 Bytes - sender’s address.

QUANTITY|TAG - the string "latest", "earliest" or "pending", or an integer block number, as you can see in the default block parameter. params:

    'latest' // state at the latest block

What you receive

QUANTITY - how many transactions were sent from the stated address, presented as an integer.


Here is a typical appliance example.


curl<key> \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc":"2.0","method":"eth_getTransactionCount","params":["0xc94770007dda54cF92009BFF0dE90c06F603a09f","latest"],"id":0}'


  "jsonrpc": "2.0",
  "id": 0,
  "result": "0x219"

Last updated