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§
source§impl Clone for EsploraBlockchainConfig
impl Clone for EsploraBlockchainConfig
source§fn clone(&self) -> EsploraBlockchainConfig
fn clone(&self) -> EsploraBlockchainConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EsploraBlockchainConfig
impl Debug for EsploraBlockchainConfig
source§impl<'de> Deserialize<'de> for EsploraBlockchainConfig
impl<'de> Deserialize<'de> for EsploraBlockchainConfig
source§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>,
source§impl From<EsploraBlockchainConfig> for AnyBlockchainConfig
impl From<EsploraBlockchainConfig> for AnyBlockchainConfig
source§fn from(inner: EsploraBlockchainConfig) -> Self
fn from(inner: EsploraBlockchainConfig) -> Self
source§impl PartialEq for EsploraBlockchainConfig
impl PartialEq for EsploraBlockchainConfig
source§fn eq(&self, other: &EsploraBlockchainConfig) -> bool
fn eq(&self, other: &EsploraBlockchainConfig) -> bool
self
and other
values to be equal, and is used
by ==
.