Comment on page
eth_getTransactionCount
Returns the number of transactions sent from an address.
ADDRESS
, The address from which the transaction count to be checked.BLOCKNUMBER |TAG
- The block number as a string in hexadecimal format or the string "latest", "earliest" or "pending", see the default block parameter.
RESULT
- integer of the number of transactions send from this address.curl --location 'https://rpc.eth.gateway.fm' \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "eth_getTransactionCount",
"params": [
"0xEA674fdDe714fd979de3EdF0F56AA9716B898ec8",
"latest"
],
"id": 13
}'
{
"jsonrpc": "2.0",
"id": 13,
"result": "0x2b8910e"
}
Last modified 7mo ago