Input class abstract

The base class for all inputs, providing the Input.match factory constructor to determine the appropriate subclass from a RawInput

Mixed-in types
Implementers

Constructors

Input.new()
Input.match(RawInput raw, [List<Uint8List> witness = const []])
Given a RawInput and witness data, the specific Input subclass is returned. If there is no witness data for the input, the witness can be excluded or provided as an empty list.
factory

Properties

complete bool
True when the input is fully signed and ready for broadcast
no setter
hashCode int
The hash code for this object.
no setterinherited
prevOut OutPoint
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
script Script?
The script from the scriptSig bytes or null if the bytes do not represent a valid script.
no setter
scriptSig Uint8List
no setter
sequence int
no setter
signedSize int?
The maximum total size when fully signed via the default hash type including any witness data of the input. If this is unknown, this is null. The actual signed size may be lower according to the data being encoded.
no setter
size int
Obtains the cached size of the object
no setterinherited

Methods

filterSignatures(bool predicate(InputSignature insig)) Input
Removes signatures that the predicate returns false for. This is used to remove invalidated signatures.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toBytes() Uint8List
Obtains a cached Uint8List with data serialized for this object
inherited
toHex() String
inherited
toString() String
A string representation of this object.
inherited
write(Writer writer) → void
Override to write data into writer
inherited

Operators

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

Constants

sequenceFinal → const int