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

Better Electrum and Esplora clients #662

Open
thunderbiscuit opened this issue Feb 4, 2025 · 3 comments
Open

Better Electrum and Esplora clients #662

thunderbiscuit opened this issue Feb 4, 2025 · 3 comments

Comments

@thunderbiscuit
Copy link
Member

Our Electrum and Esplora clients are not offering all that's available to standard Electrum and Esplora clients. Many of the available methods are not useful at the bdk-ffi layer (things like subscribing to specific script updates), but some could be (like requesting a particular block header, or requesting a random transaction given its Txid).

After looking at the APIs for Electrum and Esplora, here are a few I think could be useful for folks interacting with these clients.

Electrum

  • ElectrumApi::block_header()
  • ElectrumApi::relay_fee()
  • ElectrumApi::transaction_get_raw() or ElectrumApi::transaction_get()
  • ElectrumApi::ping()

Esplora

  • BlockingClient::get_tx()
  • BlockingClient::get_tx_status()
  • BlockingClient::get_tx_info()
  • BlockingClient::get_block_by_hash()
@thunderbiscuit thunderbiscuit changed the title Better clients Better Electrum and Esplora clients Feb 4, 2025
@reez
Copy link
Collaborator

reez commented Feb 5, 2025

Electrum

ElectrumApi::block_headers_subscribe()

Esplora

BlockingClient::get_block_hash()

Per discussion w Conor

@ConorOkus
Copy link

bitcoindevkit/bdk#603

@reez reez mentioned this issue Feb 5, 2025
8 tasks
@reez
Copy link
Collaborator

reez commented Feb 6, 2025

Esplora

  • BlockingClient::get_tx()

We've got get_tx() https://github.com/bitcoindevkit/bdk-ffi/blob/master/bdk-ffi/src/esplora.rs#L87 so I think we can cross that one off

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