watch_getStatsByDay
Parameters
QUANTITY- the unix timestamp
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
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