eth_getTransactionCount (BSC)

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: [
    '0xea0A6E3c511bbD10f4519EcE37Dc24887e11b55d',
    'latest' // state at the latest block
]

Returns

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

Request example

curl https://bsc.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":["0xea0A6E3c511bbD10f4519EcE37Dc24887e11b55d","latest"], "id":1}'

Result

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

Last updated