eth_getTransactionCount

Returns the number of transactions sent from an address.

Request

curl 'https://rpc.web3api.io?x-api-key=YOUR-API-KEY' \
    -X POST \
    -H 'x-amberdata-blockchain-id: ethereum-mainnet' \
    -d '{"jsonrpc":"2.0","id":1,"method":"eth_getTransactionCount","params":["0xc94770007dda54cF92009BFF0dE90c06F603a09f","0x5bad55"]}'
IndexDescription
0 - addressThe address.
1 - blockNumberThe integer of a block number, or the string "earliest", "latest" or "pending", as in the default block parameter.

Response

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": "0x1a" //26
}
FieldDescription
resultThe integer of the number of transactions send from this address.