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

watch_getStatsByDay

Parameters

  • QUANTITY - the unix timestamp

To convert the unix timestamp you can use https://www.epochconverter.com/

params: [
    1644419586,
]

Returns

Object - A block object with the following fields, or null when no block was found:

  • transactionCount: QUANTITY - number of transactions per day

  • averageGasPrice: QUANTITY, - average gas price per day.

  • totalGasUsed: QUANTITY, - total gas used per day

  • uncleBlockReward: QUANTITY, - uncle block reward by day

  • minersReward: QUANTITY, - miner's reward per day

  • blockCount: QUANTITY, - number of blocks per day

If you need data with a different range, ask us by mail support@watchdata.io

Request example

curl https://ethereum.api.watchdata.io/node/jsonrpc?api_key=your_api_key
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"watch_getStatsByDay","params":[1645170803"],"id":0}'
URL: https://ethereum.api.watchdata.io/node/jsonrpc?api_key=your_api_key
RequestType: POST
Body: 
{
    "jsonrpc":"2.0",
    "method":"watch_getStatsByDay",
    "params":[1645170803],
    "id":0
}

Result

Last updated