pub enum ChainSource {
Esplora(EsploraConfig),
BitcoinRpc(BitcoinRpcConfig),
}Expand description
Source of blockchain data for the BDK wallet
Variants§
Esplora(EsploraConfig)
Use an Esplora server for blockchain data
BitcoinRpc(BitcoinRpcConfig)
Use Bitcoin Core RPC for blockchain data
Implementations§
Source§impl ChainSource
impl ChainSource
pub async fn sync_wallet( &self, cdk_bdk: &CdkBdk, cancel_token: CancellationToken, ) -> Result<(), Error>
pub async fn fetch_fee_rate(&self, target_blocks: u16) -> Result<f64, Error>
Trait Implementations§
Source§impl Clone for ChainSource
impl Clone for ChainSource
Source§fn clone(&self) -> ChainSource
fn clone(&self) -> ChainSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ChainSource
impl RefUnwindSafe for ChainSource
impl Send for ChainSource
impl Sync for ChainSource
impl Unpin for ChainSource
impl UnsafeUnpin for ChainSource
impl UnwindSafe for ChainSource
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more