Script class

A Script contains just a list of OP_CODES and also knows how to serialize into bytes

script the list with all the script OP_CODES and data

Constructors

Script({required List script})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
script List
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toBytes() Uint8List
returns a serialized byte version of the script
toHex() String
returns a serialized version of the script in hex
toP2shScriptPubKey() Script
create p2psh script wit current script
toString() String
A string representation of this object.
override
toTapleafTaggedHash() Uint8List

Operators

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

Static Methods

fromRaw({required String hexData, bool hasSegwit = false}) Script
getType({required String hexData, bool hasSegwit = false}) ScriptType?