eth_getTransactionCount - Polygon

Returns the number of transactions sent from an address.

Parameters

  • DATA, 20 Bytes - address.

  • QUANTITY|TAG - integer block number, or the string "latest", "earliest" or "pending".

params: [
    '0x0e11795884b28b08f9978bb85938280967cda041',
    'latest' // state at the latest block
]

Returns

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

Request example

curl --location --request POST 'https://polygon.api.watchdata.io/node/jsonrpc?api_key=your_api_key' \
--header 'x-api-key: your_api_key' \
--header 'Content-Type: application/json' \
--data-raw '{
    "jsonrpc":"2.0",
    "method":"eth_getTransactionCount",
    "params":["0x0e11795884b28b08f9978bb85938280967cda041","latest"],
    "id":1
}'

Result

{
    "jsonrpc": "2.0",
    "id": 0,
    "result": "0xb6d7"
}

Last updated