pub trait GetTx {
    // Required method
    fn get_tx(&self, txid: &Txid) -> Result<Option<Transaction>, Error>;
}
Expand description

Trait for getting a transaction by txid

Required Methods§

source

fn get_tx(&self, txid: &Txid) -> Result<Option<Transaction>, Error>

Fetch a transaction given its txid

Implementations on Foreign Types§

source§

impl<T: GetTx> GetTx for Arc<T>

Implementors§

source§

impl GetTx for AnyBlockchain

source§

impl GetTx for CompactFiltersBlockchain

Available on crate feature compact_filters only.
source§

impl GetTx for ElectrumBlockchain

Available on crate feature electrum only.
source§

impl GetTx for EsploraBlockchain

Available on crate feature esplora only.
source§

impl GetTx for RpcBlockchain

Available on crate feature rpc only.