Skip to main content

TxOutExt

Trait TxOutExt 

Source
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§

Source

fn is_p2a_fee_anchor(&self) -> bool

Check whether this output is a p2a fee anchor.

Source

fn is_standard(&self) -> bool

Basic standardness check. Might be too strict.

Source

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".

Implementations on Foreign Types§

Source§

impl TxOutExt for TxOut

Implementors§