Invalid blockchain.scripthash.listunspent result
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 568
- Forks
- 447
- PR merge metrics
- No merged PRs in 30d
Description
Sometimes the call to blockchain.scripthash.listunspent returns this result:
{
"result":[
{
"tx_hash":"d5e8c667080b349ef6c28d94e9d18e714bfc46a9edcd2d2473e89d8e1c2f0ea7",
"height":1892169
}
],
"id":"76942fbf-29f4-4461-b9ca-86dda8636ce8",
"jsonrpc":"2.0"
}
As we can see in the response, two fields tx_pos and value are missing.
Also, an empty array is often returned when utxo actually exist.
How to determine if utxo is really missing or is it wrong response?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the blockchain.scripthash.listunspent call using the response examples in the issue, then trace the server entry point that constructs this result. Compare responses for existing and missing UTXOs and inspect how tx_pos, value, and empty results are produced; done means the behavior is understood and incorrect responses are addressed with coverage for these cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100