Struct bdk::blockchain::rpc::RpcBlockchain
source · [−]pub struct RpcBlockchain { /* private fields */ }
Available on crate feature
rpc
only.Expand description
The main struct for RPC backend implementing the crate::blockchain::Blockchain trait
Trait Implementations
sourceimpl Blockchain for RpcBlockchain
impl Blockchain for RpcBlockchain
sourcefn get_capabilities(&self) -> HashSet<Capability>
fn get_capabilities(&self) -> HashSet<Capability>
Return the set of Capability
supported by this backend
sourceimpl ConfigurableBlockchain for RpcBlockchain
impl ConfigurableBlockchain for RpcBlockchain
sourcefn from_config(config: &Self::Config) -> Result<Self, Error>
fn from_config(config: &Self::Config) -> Result<Self, Error>
Returns RpcBlockchain backend creating an RPC client to a specific wallet named as the descriptor’s checksum if it’s the first time it creates the wallet in the node and upon return is granted the wallet is loaded
sourceimpl Debug for RpcBlockchain
impl Debug for RpcBlockchain
sourceimpl From<RpcBlockchain> for AnyBlockchain
impl From<RpcBlockchain> for AnyBlockchain
sourcefn from(inner: RpcBlockchain) -> Self
fn from(inner: RpcBlockchain) -> Self
Converts to this type from the input type.
sourceimpl GetBlockHash for RpcBlockchain
impl GetBlockHash for RpcBlockchain
sourceimpl GetHeight for RpcBlockchain
impl GetHeight for RpcBlockchain
sourcefn get_height(&self) -> Result<u32, Error>
fn get_height(&self) -> Result<u32, Error>
Return the current height
sourceimpl GetTx for RpcBlockchain
impl GetTx for RpcBlockchain
sourceimpl WalletSync for RpcBlockchain
impl WalletSync for RpcBlockchain
sourcefn wallet_setup<D>(
&self,
db: &mut D,
prog: Box<dyn Progress>
) -> Result<(), Error> where
D: BatchDatabase,
fn wallet_setup<D>(
&self,
db: &mut D,
prog: Box<dyn Progress>
) -> Result<(), Error> where
D: BatchDatabase,
Setup the backend and populate the internal database for the first time Read more
sourcefn 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
Auto Trait Implementations
impl !RefUnwindSafe for RpcBlockchain
impl Send for RpcBlockchain
impl Sync for RpcBlockchain
impl Unpin for RpcBlockchain
impl !UnwindSafe for RpcBlockchain
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more