Clarification Needed: Difference in `scripthash/:hash` Compared to Electrum

Open
#460 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
35/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Stale
Domain
api, documentation

Research direction

Start by locating the Esplora documentation for the scripthash/:hash endpoint and review how the parameter is currently described. Compare that wording with Electrum's byte-order convention; done means the documentation includes a brief note or example that clearly explains the difference.

Written by the indexing model from the issue text.

Description

I've noticed that the scripthash:hash expected in Esplora differs from the one in Electrum, specifically in terms of byte order reversal. This can create confusion for developers who are familiar with Electrum.

I think it would be helpful to highlight this difference in the Esplora documentation. A brief note or example to clarify this discrepancy could assist in avoiding potential confusion.

Dominant language
JavaScript
Stars
1.3k
Forks
527
Avg merge
2d 5h
Merged PRs (30d)
4

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Blockstream/esplora

All issues in Blockstream/esplora

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.