Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

eth_getTransactionCount

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