eth_getTransactionCount

Returns the number of transactions sent from an address.

Parameters

  • ADDRESS [required] a string representing the address (20 bytes) to check for transaction count for.

  • BLOCK-NUMBER [required] a hexadecimal block number, or the string latest, earliest or pending, See the default block parameter.

Request

curl https://eth-mainnet.solarpath.io/v1/YOUR-API-KEY \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc": "2.0", "id": 1, "method": "eth_getTransactionCount", "params": ["0xea674fdde714fd979de3edf0f56aa9716b898ec8", "0x658a13"]}'

Response

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

Last updated