TxOutput class

Represents a transaction output.

amount the value we want to send to this output in satoshis scriptPubKey the script that will lock this amount

Constructors

TxOutput({required BigInt amount, required Script scriptPubKey})

Properties

amount BigInt
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scriptPubKey Script
final

Methods

copy() TxOutput
creates a copy of the object
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toBytes() Uint8List
serializes TxInput to bytes
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromRaw({required String raw, required int cursor, bool hasSegwit = false}) → Tuple2<TxOutput, int>