romanz / electrs

An efficient re-implementation of Electrum Server in Rust
MIT License
1.1k stars 407 forks source link

Unable to get UTXO of an address - /address/:address/utxo #1057

Open nakul91 opened 5 months ago

nakul91 commented 5 months ago

We are running a custom signet and using Electrs we have enabled the Mempool as well but we are facing issue when we try to get the UTXO for an address apart from this all the other API's seems to be working for example transactions api

Wreit commented 1 month ago

Experiencing same bug. Any news on this issue?

romanz commented 1 month ago

I think that you are running https://github.com/mempool/electrs or https://github.com/Blockstream/electrs... not this repository.

Wreit commented 1 month ago

At first I started with your repo on master branch. And there I firstly encountered this issue, then I tried mempool/elecrts and also there I had same problem.

Could you give me some direction, what I could be doing wrong, or what to check at least so I'm able to solve it?

Thanks 🙂

romanz commented 1 month ago

IIUC you can use the following endpoint: https://mempool.space/api/address/1PuJjnF476W3zXfVYmJfGnouzFDAXakkL4/utxo https://blockstream.info/api/address/1PuJjnF476W3zXfVYmJfGnouzFDAXakkL4/utxo

Wreit commented 1 month ago

Yes I tried those endpoints from public api those are fine. I locally run bitcoind + electrs + mempool backend/frontend.

Every other local endpoint is working fine as it should but address/.../utxo is giving me some strange html response with 404 and I don't know why.

I also tried umbrel with bitcoind + electrs and it has same strange html error with 404.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot GET /api/v1/address/1KFHE7w8BhaENAswwryaoccDb6qcT6DbYY/utxo</pre>
</body>
</html>