Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explorer node: Add kernel search #1988

Open
dbadol opened this issue Jul 1, 2024 · 1 comment
Open

Explorer node: Add kernel search #1988

dbadol opened this issue Jul 1, 2024 · 1 comment
Assignees

Comments

@dbadol
Copy link
Contributor

dbadol commented Jul 1, 2024

Current situation
We can request the node explorer for the details of a given block height (using "block" and "&height="), but we cannot request the information if we only have a kernel id (which is what users normally get for the transactions they do with their wallet).

Solution we'd like
Allow to request "block" with a "&kernel=" parameter holding a kernel id. The returned information would be the same as if we had requested the block height of the block that contains that kernel.

Alternative
Use "&id=" instead of "&kernel=" (as already used for "asset" and "contract" requests).

Remark
By allowing two different parameters ("&height=" and "&kernel=") the node explorer needs to manage the possibility to get an inconsistent request. In that case, it should consider only "&height=" and ignore "&kernel=".

Additional context
Such a kernel id search capability is probably the main use a standard user can have a block explorer!

@dbadol
Copy link
Contributor Author

dbadol commented Jul 2, 2024

I see now here that this "kernel" option already exist! Or at least existed in 2020... Is it still working?
https://github.com/BeamMW/beam/wiki/Beam-Node-Explorer-API

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants