Skip to content

Better Electrum and Esplora clients #662

@thunderbiscuit

Description

@thunderbiscuit

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()

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions