Skip to content

All Blocks Page

This ticket is to address creating a new All Blocks Page

  1. On Home Page >> Block Search
    1. A new table is to be created for the blocks instead of the current view
    2. The table can contain the following :
      1. Block Number

      2. Timestamp

      3. Producer

      4. Block Hash

      5. An extra icon : additional details to view the additional details (tbd)

      6. I made a quick example for the layout

        image.png

    3. We can add here a View All Blocks page
  2. View All Blocks Page from Home Page
    1. Add a new link for all blocks page . Maybe here we can a second additional bar under the main bar and add to it all links, example All Blocks, Witnesses , Witness Schedules, and later we can utilize this menu for additional menu items
  3. The All Blocks Page will contain
    1. Search Functionality like the one on the home page
    2. ALl Blocks Table like the example above
  4. Implementation requirements :
    1. The current API returns few information and should be updated to match our needs. The API used is

      https://api.syncad.com/hafbe-api/block-numbers?page=1&page-size=100&direction=desc**.**

      https://api.syncad.com/#/Block-numbers/hafbe_endpoints.get_block_by_op

    2. The information we need here with examples:

      1. "producer": "anyx",
      2. "block_id": "009861db9d52bc844c93f48954b74f993c4d5f78",
      3. "previous": "009861dad328e0f2dbc489df44bfad76b1b52a97",
      4. "timestamp": "2017-03-08T06:18:45",
      5. Operations[] : Contain Operation ID and Transaction ID so we indicate the number of operations and transactions in Block
      6. As per our discussion, we need to check if we can add the following to the block
        1. Block Size: The size of the block in bytes (or kilobytes, megabytes, etc.)
        2. Number of Confirmations: How many blocks have been mined after this block. Higher confirmations provide more confidence that the block is immutable.
        3. Reward: The block reward received by the witness for creating the block
        4. RC Used: Resource Credits
      7. Note: If any of the above can be added to the blocks, we need to update other APIs to return the added data so we can reflect them on block explorer. Example: If block size can be retrieved then we need to update other API that returns block information so we can display data example https://api.syncad.com/hafah-api/blocks/9986523?include-virtual=false