BDK Esplora
BDK Esplora extends esplora-client
(with extension traits: EsploraExt
and
EsploraAsyncExt
) to update bdk_chain
structures from an Esplora server.
The extension traits are primarily intended to satisfy SyncRequest
s with sync
and
FullScanRequest
s with full_scan
.
Usage
For blocking-only:
= { = "0.19", = ["blocking"] }
For async-only:
= { = "0.19", = ["async"] }
For async-only (with https):
You can additionally specify to use either rustls or native-tls, e.g. async-https-native
, and this applies to both async and blocking features.
= { = "0.19", = ["async-https"] }
For async-only (with tokio):
= { = "0.19", = ["async", "tokio"] }
To use the extension traits:
// for blocking
use EsploraExt;
// for async
use EsploraAsyncExt;
For full examples, refer to example_wallet_esplora_blocking
and example_wallet_esplora_async
.