eth_getTransactionCount - Ethereum
Shows the number of transactions that were sent from one stated address
How to Use the eth_getTransactionCount Method
Parameters
DATA, 20 Bytes - sender’s address.
QUANTITY|TAG - the string "latest", "earliest" or "pending", or an integer block number, as you can see in the default block parameter. params:
[
'0xc94770007dda54cF92009BFF0dE90c06F603a09f',
'latest' // state at the latest block
]
What you receive
QUANTITY - how many transactions were sent from the stated address, presented as an integer.
Sample
Here is a typical appliance example.
Call
curl https://eth-mainnet.rpcfast.com/?api_key=<key> \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_getTransactionCount","params":["0xc94770007dda54cF92009BFF0dE90c06F603a09f","latest"],"id":0}'
Outcome
{
"jsonrpc": "2.0",
"id": 0,
"result": "0x219"
}
Last updated