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}'

Result

{
    "id": 0,
    "jsonrpc": "2.0",
    "result": {
        "transactionCount": 1252754,
        "averageGasPrice": 99672209984.26283,
        "totalGasUsed": 99200040530,
        "uncleBlockReward": 676500000000000000000,
        "minersReward": 13594383283569909503493,
        "blockCount": 6418
    }
}

Last updated