Transaction Statistics
This ticket is to address the new sections related to the transaction statistics API (API ticket haf_block_explorer#98)
https://api.syncad.com/hafbe-api/transaction-statistics
- Create a new card for statistics above the last blocks chart (with narrow height - Last Blocks Title should align with Current Block), containing the following
- 3 horizontal sections
-
Transactions
- Total Number of Transactions https://api.syncad.com/hafbe-api/transaction-statistics?granularity=yearly&direction=desc calculated as the sum across the years
- Sub Text: average Trxs
- Sub Text: min Trxs
- Sub Text: max Trxs
-
Daily Count for statistics / Supports live mode
- Sub Text: average Trxs
- Sube Text: min Trxs
- Sub Text: max Trxs
- Transactions chart
- a small chart to show the transactions for the last week
- View Chart link
- Opens modal window
- Filters available
- Our default filters from the search ranges
- Additional Select to Select Daily, Monthly or Yearly Statistics
- Daily shows the results for the Last 30 Days
- Chart updated based on selected filters
-
Transactions
- 3 horizontal sections
As per my discussion with Micheal here are extra details about the API
- trx_count is count of ALL transaction in this time range (in this day/month/year)
- avg_trx is average amount of trx in blocks in this range. For Example when time range is daily and avg_trx:19 means that THIS DAY there was average 19 transactions in block
- min_trx is the smallest amount of trx in block in this time range
- max_trx is the largest amount of trx in block in this time range
- last_block_num is block that was last this day with transaction
Edited by Dima Rifai