Skip to content

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

  1. 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
    1. 3 horizontal sections
      1. Transactions
        1. Total Number of Transactions https://api.syncad.com/hafbe-api/transaction-statistics?granularity=yearly&direction=desc calculated as the sum across the years
        2. Sub Text: average Trxs
        3. Sub Text: min Trxs
        4. Sub Text: max Trxs
      2. Daily Count for statistics / Supports live mode
        1. Sub Text: average Trxs
        2. Sube Text: min Trxs
        3. Sub Text: max Trxs
      3. Transactions chart
        1. a small chart to show the transactions for the last week
        2. View Chart link
          1. Opens modal window
          2. Filters available
            1. Our default filters from the search ranges
            2. Additional Select to Select Daily, Monthly or Yearly Statistics
            3. Daily shows the results for the Last 30 Days
          3. Chart updated based on selected filters

As per my discussion with Micheal here are extra details about the API

  1. trx_count is count of ALL transaction in this time range (in this day/month/year)
  2. 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
  3. min_trx is the smallest amount of trx in block in this time range
  4. max_trx is the largest amount of trx in block in this time range
  5. last_block_num is block that was last this day with transaction
Edited by Dima Rifai