eth_getTransactionCount

Returns the number of transactions sent from an address.

Parameters

  • DATA, 20 Bytes - address.

  • QUANTITY|TAG - integer block number, or the string "latest", "earliest" or "pending".

params: [
    '0xF5F3436A05B5CEd2490DAE07B86EB5BbD02782aA',
    'latest' // state at the latest block
]

Returns

QUANTITY - integer of the number of transactions send from this address.

Request example

curl --location --request POST 'https://ethereum.api.watchdata.io/node/jsonrpc?api_key=your_api_key' \
--header 'x-api-key: your_api_key' \
--header 'Content-Type: application/json' \
--data-raw '{
    "jsonrpc":"2.0",
    "method":"eth_getTransactionCount",
    "params":["0xF5F3436A05B5CEd2490DAE07B86EB5BbD02782aA","latest"],
    "id":1
}'

Result

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": "0xcbcf"
}

Last updated