pub struct TxOut {
pub asset: Asset,
pub value: Value,
pub nonce: Nonce,
pub script_pubkey: Script,
pub witness: TxOutWitness,
}
Expand description
Transaction output
Fields
asset: Asset
Committed asset
value: Value
Committed amount
nonce: Nonce
Nonce (ECDH key passed to recipient)
script_pubkey: Script
Scriptpubkey
witness: TxOutWitness
Witness data - not deserialized/serialized as part of a TxIn
object
(rather as part of its containing transaction, if any) but is logically
part of the txin.
Implementations
sourceimpl TxOut
impl TxOut
sourcepub fn is_null_data(&self) -> bool
pub fn is_null_data(&self) -> bool
Whether this data represents nulldata (OP_RETURN followed by pushes)
sourcepub fn is_pegout(&self) -> Option<PegoutData<'_>>
pub fn is_pegout(&self) -> Option<PegoutData<'_>>
Whether this output is a pegout; if so, returns the destination genesis block, the destination script pubkey, and any additional data
sourcepub fn minimum_value(&self) -> u64
pub fn minimum_value(&self) -> u64
Extracts the minimum value from the rangeproof, if there is one, or returns 0.
Trait Implementations
sourceimpl<D: SimpleDecoder> ConsensusDecodable<D> for TxOut
impl<D: SimpleDecoder> ConsensusDecodable<D> for TxOut
sourceimpl<S: SimpleEncoder> ConsensusEncodable<S> for TxOut
impl<S: SimpleEncoder> ConsensusEncodable<S> for TxOut
impl Eq for TxOut
impl StructuralEq for TxOut
impl StructuralPartialEq for TxOut
Auto Trait Implementations
impl RefUnwindSafe for TxOut
impl Send for TxOut
impl Sync for TxOut
impl Unpin for TxOut
impl UnwindSafe for TxOut
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more