How can i Get stats by Day
A short how to guide.
Last updated
A short how to guide.
Last updated
Today weβll start with watch_getStatsByDay. We added this endpoint recently, but now we want to tell you what its value and usefulness are.
watch_getStatsByDay β is a set of parameters collected in a single endpoint. This is the statistical data used in the ETH blockchain. By the way, this method will be available for other blockchains in the near future.
With this data you can get all the statistical information for 1 day in 1 click. This removes a headache for many users, because using this method you donβt have to collect and process data from different sources.
There are many ways to use and process this data, for example, you can use it in the following cases:
You can build a graph and estimate the statistics, on which day there were more transactions and on which day more commission was paid.
All you have to do is get a key and process the request through any API interaction tool, you can find a detailed guide β here. In the parameters, select the date you need and get an answer. To convert the unix timestamp you can use https://www.epochconverter.com/
Example Request
Example Response
Returns explanation
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
This way you can collect data for the time period you need. For example
Using this data, you can build any graphs you want as well as serving specific information. Of course presented here is only a small part, it all depends on your product, you are free to work with any type of data, and we will help you with this!