2023-03-02 16:23:06 +11:00
|
|
|
# BDK Esplora
|
|
|
|
|
2023-03-10 13:40:27 +13:00
|
|
|
BDK Esplora extends [`esplora_client`](crate::esplora_client) to update [`bdk_chain`] structures
|
|
|
|
from an Esplora server.
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
There are two versions of the extension trait (blocking and async).
|
|
|
|
|
|
|
|
For blocking-only:
|
|
|
|
```toml
|
|
|
|
bdk_esplora = { version = "0.1", features = ["blocking"] }
|
|
|
|
```
|
|
|
|
|
|
|
|
For async-only:
|
|
|
|
```toml
|
|
|
|
bdk_esplora = { version = "0.1", features = ["async"] }
|
|
|
|
```
|
|
|
|
|
|
|
|
For async-only (with https):
|
|
|
|
```toml
|
|
|
|
bdk_esplora = { version = "0.1", features = ["async-https"] }
|
|
|
|
```
|
|
|
|
|
|
|
|
To use the extension trait:
|
|
|
|
|
|
|
|
```rust,no_run
|
|
|
|
// for blocking
|
|
|
|
use bdk_esplora::EsploraExt;
|
|
|
|
// for async
|
|
|
|
use bdk_esplora::EsploraAsyncExt;
|
|
|
|
```
|
|
|
|
|
|
|
|
<!-- BDK Esplora client library for updating the `bdk_chain` structures. -->
|
|
|
|
|
|
|
|
<!-- [`esplora_client`]: https://docs.rs/esplora-client/latest -->
|