Struct bdk::blockchain::electrum::ElectrumBlockchain
source · [−]pub struct ElectrumBlockchain { /* private fields */ }
This is supported on crate feature
electrum
only.Expand description
Wrapper over an Electrum Client that implements the required blockchain traits
Example
See the blockchain::electrum
module for a usage example.
Trait Implementations
Return the set of Capability
supported by this backend
type Config = ElectrumBlockchainConfig
type Config = ElectrumBlockchainConfig
Type that contains the configuration
Create a new instance given a configuration
Performs the conversion.
fetch block hash given its height
Return the current height
fn wallet_setup<D: BatchDatabase>(
&self,
database: &mut D,
_progress_update: Box<dyn Progress>
) -> Result<(), Error>
fn wallet_setup<D: BatchDatabase>(
&self,
database: &mut D,
_progress_update: Box<dyn Progress>
) -> Result<(), Error>
Setup the backend and populate the internal database for the first time Read more
fn wallet_sync<D: BatchDatabase>(
&self,
database: &mut D,
progress_update: Box<dyn Progress>
) -> Result<(), Error>
fn wallet_sync<D: BatchDatabase>(
&self,
database: &mut D,
progress_update: Box<dyn Progress>
) -> Result<(), Error>
If not overridden, it defaults to calling Self::wallet_setup
internally. Read more