Invalid blockchain.scripthash.listunspent result
Closed this issue · 1 comments
dmitry537 commented
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?
kyuupichan commented
This is the code; the result you show is not possible: https://github.com/kyuupichan/electrumx/blob/master/electrumx/server/session.py#L1083-L1096
You're either running 3rd party code, not calling blockchain.scripthash.listunspent, or have modified the code yourself.