Trait GetWalletTx

Source
pub trait GetWalletTx {
    // Required methods
    fn get_wallet_tx(&self, txid: Txid) -> Option<Arc<Transaction>>;
    fn get_wallet_tx_confirmed_block(
        &self,
        txid: Txid,
    ) -> Result<Option<BlockRef>>;
}
Expand description

Ability to look up transactions known to the wallet.

Implementations should return wallet-related transactions and, when possible, the block information those transactions confirmed in.

Required Methods§

Source

fn get_wallet_tx(&self, txid: Txid) -> Option<Arc<Transaction>>

Retrieve the wallet Transaction for the given Txid if any.

Source

fn get_wallet_tx_confirmed_block(&self, txid: Txid) -> Result<Option<BlockRef>>

Retrieve information about the block, if any, a given wallet transaction was confirmed in.

Implementors§

Source§

impl<W: Deref<Target = Wallet>> GetWalletTx for W