pub trait TxOutExt: Borrow<TxOut> {
// Provided methods
fn is_p2a_fee_anchor(&self) -> bool { ... }
fn is_standard(&self) -> bool { ... }
fn check_standard(&self) -> Result<(), NonStandardOutput> { ... }
}Expand description
Extension trait for TxOut.
Provided Methods§
Sourcefn is_p2a_fee_anchor(&self) -> bool
fn is_p2a_fee_anchor(&self) -> bool
Check whether this output is a p2a fee anchor.
Sourcefn is_standard(&self) -> bool
fn is_standard(&self) -> bool
Basic standardness check. Might be too strict.
Sourcefn check_standard(&self) -> Result<(), NonStandardOutput>
fn check_standard(&self) -> Result<(), NonStandardOutput>
Basic standardness check, returning the offending reason when the output isn’t relayable. Might be too strict.
Combines two checks: the script type must be recognised (P2PKH, P2SH, P2WPKH, P2WSH, P2TR, or a short OP_RETURN) and the value must clear that script’s dust limit.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".