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
Postman
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
{
"id": 0,
"jsonrpc": "2.0",
"result": {
"transactionCount": 1252754,
"averageGasPrice": 99672209984.26283,
"totalGasUsed": 99200040530,
"uncleBlockReward": 676500000000000000000,
"minersReward": 13594383283569909503493,
"blockCount": 6418
}
}
Last modified 1yr ago