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"]}'
Index | Description |
---|---|
0 - address | The address. |
1 - blockNumber | The 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
}
Field | Description |
---|---|
result | The integer of the number of transactions send from this address. |