We at WatchData are in the business of making life better for developers and the entire crypto community. Our API is a simple and easy way to interact with blockchain and we want to tell and show you what you can get by using WatchData.
Here is a brief analysis of our endpoints.
In this series of articles, you can get answers to the following questions:
- What is it?
- What is it for?
- What can I do with it?
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.
3.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/
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!
This example shows the method, which gives the data within one day, if you need other ranges, please contact us email@example.com
Or join our discord community, there, in the channel #general you can ask any questions that interest you, as well as in the channel #feature-request suggest a feature or statistical information that you need in the first place.