For the complete documentation index, see llms.txt. This page is also available as Markdown.

eth_getTransactionCount

Returns the number of transactions sent from an address.

Parameters

DATA, 20 Bytes - Address.

QUANTITY|TAG -Hexadecimal block number, or the string "latest", "earliest", "safe" or "finalized", see the default block parameter

Returns

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

Example

Request

curl https://rpc.adiri.tel \
 -X POST \
 -H "Content-Type: application/json" \
 --data '{"jsonrpc":"2.0","method":"eth_getTransactionCount","params":[
        "0x3da87b1c3743bd2da60df2ef1bc6f26ef9da6086", 
        "latest"],"id":1}'

Result

{
  "jsonrpc": "2.0",
  "result": "0x2c3", //707
  "id": 1
}

source

Last updated