umbrel-os icon indicating copy to clipboard operation
umbrel-os copied to clipboard

[API - REST] GET Address UTXO missing

Open zatJUM opened this issue 3 years ago • 2 comments

Hi

Try this:

curl -sSL https://mempool.space/api/address/3Adsw48SVXTGU5LNhXwnLReAE6J81yENZk/utxo | jq length
1

Then, on your umbrel node:

curl -sSL http://127.0.0.1:3006/api/address/3Adsw48SVXTGU5LNhXwnLReAE6J81yENZk/utxo | jq length
parse error: Invalid numeric literal at line 1, column 10

Tested on 0.4.11 version

zatJUM avatar Jan 20 '22 16:01 zatJUM

@wiz Is this endpoint not available on the self hosted version?

louneskmt avatar Jan 23 '22 16:01 louneskmt

This is one of the Blockstream/esplora (https://github.com/Blockstream/esplora/blob/master/API.md) specific API endpoint that we have not re-implemented in our NodeJS/bitcoind backend since we are not using it in the mempool app and nobody has requested it before.

If you open an issue or make a PR on https://github.com/mempool/mempool/issues I guess there is possible to re-implement this API for the Umbrel setup with romanz/electrs.

softsimon avatar Jan 23 '22 18:01 softsimon