getumbrel / umbrel-os

umbrelOS for Raspberry Pi 4 (only). Covert your Raspberry Pi into a home server in one click. For other hardware, checkout https://github.com/getumbrel/umbrel
https://umbrel.com
BSD 3-Clause "New" or "Revised" License
595 stars 55 forks source link

[API - REST] GET Address UTXO missing #248

Open zatJUM opened 2 years ago

zatJUM commented 2 years ago

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

louneskmt commented 2 years ago

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

softsimon commented 2 years ago

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.