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§
Sourcefn get_wallet_tx(&self, txid: Txid) -> Option<Arc<Transaction>>
fn get_wallet_tx(&self, txid: Txid) -> Option<Arc<Transaction>>
Retrieve the wallet Transaction for the given Txid if any.