eth_getTransactionCount

Returns the number of transactions sent from a given address.

Parameters

  1. Address.

  2. Quantity or tag - choose 1 of the following options:

    • A hexadecimal block number.

    • "earliest" - the earliest/genesis block.

    • "latest" - the latest mined block.

    • "pending" - the pending state/transactions.

Sample Request

curl https://lb.nodies.app/v1/<INSERT URL> \
   -H "x-api-key: <API-KEY>" \
   -X POST \
   -H "Content-Type: application/json" \
   -d '{ 
  "id": 1,
  "jsonrpc": "2.0",
  "method": "eth_getTransactionCount",
  "params": [
    "0x2F44Ada9820b28AB076169a92594EA7d8540b32C",
    "0x9582c5"
  ]
}'

Sample Response

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0x15"
}

Last updated