Struct lwk_wollet::EsploraClient
source · pub struct EsploraClient { /* private fields */ }
Available on crate feature
esplora
only.Expand description
A blockchain backend implementation based on the esplora HTTP API
Implementations§
Trait Implementations§
source§impl BlockchainBackend for EsploraClient
impl BlockchainBackend for EsploraClient
fn tip(&mut self) -> Result<BlockHeader, Error>
fn broadcast(&self, tx: &Transaction) -> Result<Txid, Error>
fn get_transactions(&self, txids: &[Txid]) -> Result<Vec<Transaction>, Error>
fn get_headers( &self, heights: &[u32], height_blockhash: &HashMap<u32, BlockHash> ) -> Result<Vec<BlockHeader>, Error>
fn get_scripts_history( &self, scripts: &[&Script] ) -> Result<Vec<Vec<History>>, Error>
fn full_scan(&mut self, wollet: &Wollet) -> Result<Option<Update>, Error>
fn download_txs( &self, history_txs_id: &HashSet<Txid>, scripts: &HashMap<Script, (Chain, ChildNumber)>, store: &Store, descriptor: &WolletDescriptor ) -> Result<DownloadTxResult, Error>
fn download_headers( &self, history_txs_heights: &HashSet<u32>, height_blockhash: &HashMap<u32, BlockHash>, store: &Store ) -> Result<Vec<(u32, u32)>, Error>
Auto Trait Implementations§
impl Freeze for EsploraClient
impl RefUnwindSafe for EsploraClient
impl Send for EsploraClient
impl Sync for EsploraClient
impl Unpin for EsploraClient
impl UnwindSafe for EsploraClient
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