Struct bdk::blockchain::electrum::ElectrumBlockchainConfig
source · [−]pub struct ElectrumBlockchainConfig {
pub url: String,
pub socks5: Option<String>,
pub retry: u8,
pub timeout: Option<u8>,
pub stop_gap: usize,
}
This is supported on crate feature
electrum
only.Expand description
Configuration for an ElectrumBlockchain
Fields
url: String
URL of the Electrum server (such as ElectrumX, Esplora, BWT) may start with ssl://
or tcp://
and include a port
eg. ssl://electrum.blockstream.info:60002
socks5: Option<String>
URL of the socks5 proxy server or a Tor service
retry: u8
Request retry count
timeout: Option<u8>
Request timeout (seconds)
stop_gap: usize
Stop searching addresses for transactions after finding an unused gap of this length
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 ElectrumBlockchainConfig
impl Send for ElectrumBlockchainConfig
impl Sync for ElectrumBlockchainConfig
impl Unpin for ElectrumBlockchainConfig
impl UnwindSafe for ElectrumBlockchainConfig
Blanket Implementations
Mutably borrows from an owned value. Read more