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
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for EsploraBlockchainConfig
impl Send for EsploraBlockchainConfig
impl Sync for EsploraBlockchainConfig
impl Unpin for EsploraBlockchainConfig
impl UnwindSafe for EsploraBlockchainConfig
Blanket Implementations
Mutably borrows from an owned value. Read more