telosnetwork / teloscan

Telos EVM block explorer for viewing blocks, transactions, contracts, staking, and more
https://teloscan.io
Apache License 2.0
22 stars 25 forks source link

Block route redesign #534

Closed ezra-sg closed 6 months ago

ezra-sg commented 8 months ago

the /block route should be refactored to show the following information instead of a table of transactions:

pmjanus commented 8 months ago

Extra Data Hash Parent Hash Transactions Root Nonce

We want to add Extra Data field, on ETH its just extra data you can add to the block. In Eth and in Telos 2.0 extra data is part of block header so it is used in block hash, it provides uniqueness. For this task: Display Extra Data, and make it Link to: native explorer/block/extravalue without 0x

Example:

The block page https://deploy-preview-542--teloscan-redesign.netlify.app/block/283797673?tab=overview

the field "extraData": "0x10ea68e25e45d59ba562c3c654b015e4360cdf744663baf518e739347dae7ec4", verify: https://api.testnet.teloscan.io/v1/block/283797673

Link that clicking the extra value should give you: https://explorer-test.telos.net/block/10ea68e25e45d59ba562c3c654b015e4360cdf744663baf518e739347dae7ec4?page=1,10