Module bdk::blockchain::esplora [−][src]
This is supported on crate feature
esplora
only.Expand description
Esplora
This module defines a EsploraBlockchain
struct that can query an Esplora
backend populate the wallet’s database by:
Example
let blockchain = EsploraBlockchain::new("https://blockstream.info/testnet/api", 20);
Esplora blockchain can use either ureq
or reqwest
for the HTTP client
depending on your needs (blocking or async respectively).
Please note, to configure the Esplora HTTP client correctly use one of: Blocking: –features=‘esplora,ureq’ Async: –features=‘async-interface,esplora,reqwest’ –no-default-features
Structs
Structure that implements the logic to sync with Esplora
Configuration for an EsploraBlockchain
Data type used when fetching transaction history from Esplora.
Enums
Errors that can happen during a sync with EsploraBlockchain