Skip to content

Add a block height/hash search field #2

@dbadol

Description

@dbadol

Need

One of the main use of a block explorer is for blockchain users to look for transactions they know about. A search field in the front end is thus necessary.

Proposal

Add a search field on the top banner of the page, so that it's always available and can easily be reached. Either as a large text field below the central menu options, or as an automatically expandable search field on one side.

The text field will accept either a block height (i.e. from 1 to -let's say- 10 or 12 digits [0-9]) or a kernel id (fixed length of 64 characters [0-9a-fA-F]), and will automatically detect which one has been entered.

The field can auto-validate. And it can also tolerate spaces and comas (in case people copy-paste block heights from common notations such as 3,740,302 or 3 740 302).

The text field placeholder will indicate "Search block height or kernel id".

The result will either give an error message (popup?) if the block or kernel does not exist, or will lead to the block details page for the resulting block.

The query to the node explorer shall be either block?height=... or block?kernel=...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions