bdk icon indicating copy to clipboard operation
bdk copied to clipboard

Make `EsploraBlockchain` accessable to outside libraries

Open benthecarman opened this issue 3 years ago • 3 comments

I am working on a project and need to make requests to a esplora backend. Would be nice if I could use bdk's implementation.

benthecarman avatar Mar 13 '22 07:03 benthecarman

Hey @benthecarman. It'd be useful to know what bits of esplora you'd like to use from BDK. We're currently thinking about a v1.0 release and a big part of that might be removing all API surface area for esplora except for the bit that keeps the wallet up to date.

Having said that I think it makes sense to expose at least a user agent that can make requests to a specific path in the api (you'd have to deserilaize the responses into types yourself though).

But perhaps since we've already implemented it we could keep and expose the esplora API (even the bits we don't use) and just rely on people who use those parts to make PRs and keep it up to date.

LLFourn avatar Mar 14 '22 02:03 LLFourn

It'd be nice to have full api coverage. It probably makes sense to make it a separate library that bdk relies on

benthecarman avatar Mar 14 '22 02:03 benthecarman

Sure thanks. Yep the plan is to make it separate.

LLFourn avatar Mar 14 '22 02:03 LLFourn

We've recently moved our esplora client into this separate crate: https://github.com/bitcoindevkit/rust-esplora-client

The goal now is to integrate it into BDK for the next release

afilini avatar Sep 07 '22 15:09 afilini

Closing now that rust-esplora-client is published and #764 is merged.

https://crates.io/crates/esplora-client

notmandatory avatar Sep 29 '22 16:09 notmandatory