Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Esplora HTTP REST API Server Support #1038

Open
cryptoquick opened this issue Jul 24, 2023 · 2 comments
Open

Esplora HTTP REST API Server Support #1038

cryptoquick opened this issue Jul 24, 2023 · 2 comments

Comments

@cryptoquick
Copy link

Hi, I'm currently adding HTTP server support for Electrs: romanz/electrs#911
This is based on the Blockstream Esplora API: https://github.com/Blockstream/esplora/blob/master/API.md#esplora-http-api
I'm doing this to better support self-hosted Bitcoin node solutions like the Start9 Server for BitMask Wallet.

While communicating with the S9 team, they floated that this work might also solve a problem they'd been having with their Sparrow wallet users.

Apparently Sparrow cannot make LAN calls to Electrs because HTTP is the only protocol StartOS can use on LAN.

So, adding HTTP server support to Electrs could open the door to solving this problem for Sparrow users, so long as Sparrow has the capability to make calls to the Esplora HTTP REST API.

Also, if the client supports HTTP2, it might have the potential to be faster than separate TCP JSON-RPC calls.

@craigraw
Copy link
Collaborator

Apparently Sparrow cannot make LAN calls to Electrs because HTTP is the only protocol StartOS can use on LAN.

@gStart9 can you confirm this?

@gStart9
Copy link

gStart9 commented Jul 24, 2023

It's true at the moment. We so far only have HTTP(S) reverse proxy capabilities into services' containers from the LAN. Regular TCP port forwarding is waiting for our LAN-port-forwarding-to-the-containers feature coming in our next major release (v040).

It's news to me that someone made a rest interface for its RPC, that's awesome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants