All Blocks Page
This ticket is to address creating a new All Blocks Page
- On Home Page >> Block Search
- A new table is to be created for the blocks instead of the current view
- The table can contain the following :
- We can add here a View All Blocks page
- View All Blocks Page from Home Page
- 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
- The All Blocks Page will contain
- Search Functionality like the one on the home page
- ALl Blocks Table like the example above
-
Implementation requirements :
-
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
-
The information we need here with examples:
- "producer": "anyx",
- "block_id": "009861db9d52bc844c93f48954b74f993c4d5f78",
- "previous": "009861dad328e0f2dbc489df44bfad76b1b52a97",
- "timestamp": "2017-03-08T06:18:45",
- Operations[] : Contain Operation ID and Transaction ID so we indicate the number of operations and transactions in Block
- As per our discussion, we need to check if we can add the following to the block
- Block Size: The size of the block in bytes (or kilobytes, megabytes, etc.)
- Number of Confirmations: How many blocks have been mined after this block. Higher confirmations provide more confidence that the block is immutable.
- Reward: The block reward received by the witness for creating the block
- RC Used: Resource Credits
- 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
-