Trait bitcoind_client::Explorer

source ·
pub trait Explorer {
    // Required methods
    fn get_utxo_confirmations<'life0, 'life1, 'async_trait>(
        &'life0 self,
        txout: &'life1 OutPoint,
    ) -> Pin<Box<dyn Future<Output = Result<Option<u64>, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn broadcast_transaction<'life0, 'life1, 'async_trait>(
        &'life0 self,
        tx: &'life1 Transaction,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_utxo_spending_tx<'life0, 'life1, 'async_trait>(
        &'life0 self,
        txout: &'life1 OutPoint,
    ) -> Pin<Box<dyn Future<Output = Result<Option<Transaction>, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

A trait for a generic block source

Required Methods§

source

fn get_utxo_confirmations<'life0, 'life1, 'async_trait>( &'life0 self, txout: &'life1 OutPoint, ) -> Pin<Box<dyn Future<Output = Result<Option<u64>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get number of confirmations when an outpoint is confirmed and unspent Returns None if the outpoint is not confirmed or is spent

source

fn broadcast_transaction<'life0, 'life1, 'async_trait>( &'life0 self, tx: &'life1 Transaction, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Broadcast transaction

source

fn get_utxo_spending_tx<'life0, 'life1, 'async_trait>( &'life0 self, txout: &'life1 OutPoint, ) -> Pin<Box<dyn Future<Output = Result<Option<Transaction>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get the transaction that spends the given outpoint, if exists in chain

Implementors§