pub trait TransactionExt: Borrow<Transaction> {
// Provided methods
fn fee_anchor(&self) -> Option<(OutPoint, &TxOut)> { ... }
fn output_value(&self) -> Amount { ... }
fn all_related_utxos(&self) -> impl Iterator<Item = OutPoint> { ... }
}Expand description
Extension trait for Transaction.
Provided Methods§
Sourcefn fee_anchor(&self) -> Option<(OutPoint, &TxOut)>
fn fee_anchor(&self) -> Option<(OutPoint, &TxOut)>
Check if this tx has a fee anchor output and return the outpoint of it.
Only the first fee anchor is returned.
Sourcefn output_value(&self) -> Amount
fn output_value(&self) -> Amount
Returns total output value of the transaction.
Returns an iterator over all input and output UTXOs related to this tx.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.