Enum bdk::blockchain::any::AnyBlockchain
source · [−]pub enum AnyBlockchain {
Electrum(ElectrumBlockchain),
Esplora(EsploraBlockchain),
CompactFilters(CompactFiltersBlockchain),
Rpc(RpcBlockchain),
}
Expand description
Type that can contain any of the Blockchain
types defined by the library
It allows switching backend at runtime
See this module’s documentation for a usage example.
Variants
Electrum(ElectrumBlockchain)
This is supported on crate feature
electrum
only.Electrum client
Esplora(EsploraBlockchain)
This is supported on crate feature
esplora
only.Esplora client
CompactFilters(CompactFiltersBlockchain)
This is supported on crate feature
compact_filters
only.Compact filters client
Rpc(RpcBlockchain)
This is supported on crate feature
rpc
only.RPC client
Trait Implementations
Return the set of Capability
supported by this backend
Setup the backend and populate the internal database for the first time Read more
Populate the internal database with transactions and UTXOs Read more
Fetch a transaction from the blockchain given its txid
Return the current height
type Config = AnyBlockchainConfig
type Config = AnyBlockchainConfig
Type that contains the configuration
Create a new instance given a configuration
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.