Struct bdk::blockchain::esplora::EsploraBlockchainConfig
source · pub struct EsploraBlockchainConfig {
pub base_url: String,
pub proxy: Option<String>,
pub concurrency: Option<u8>,
pub stop_gap: usize,
pub timeout: Option<u64>,
}
esplora
only.Expand description
Configuration for an EsploraBlockchain
Fields
base_url: String
Base URL of the esplora service
eg. https://blockstream.info/api/
proxy: Option<String>
Optional URL of the proxy to use to make requests to the Esplora server
The string should be formatted as: <protocol>://<user>:<password>@host:<port>
.
Note that the format of this value and the supported protocols change slightly between the
sync version of esplora (using ureq
) and the async version (using reqwest
). For more
details check with the documentation of the two crates. Both of them are compiled with
the socks
feature enabled.
The proxy is ignored when targeting wasm32
.
concurrency: Option<u8>
Number of parallel requests sent to the esplora service (default: 4)
stop_gap: usize
Stop searching addresses for transactions after finding an unused gap of this length.
timeout: Option<u64>
Socket timeout.
Implementations
Trait Implementations
sourceimpl Clone for EsploraBlockchainConfig
impl Clone for EsploraBlockchainConfig
sourcefn clone(&self) -> EsploraBlockchainConfig
fn clone(&self) -> EsploraBlockchainConfig
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more