Script class
Constructors
Script.new (Iterable <ScriptOp > ops )
Constructs a script from the operations
Script.decompile (Uint8List script , {bool requireMinimal = true })
Decompiles the script and may return a sub-class representing the script
type. May return OutOfData if the script has an invalid pushdata.
If requireMinimal
is true (default), the script push push data minimally
or PushDataNotMinimal will be thrown.
factory
Script.fromAsm (String asm )
Constructs a script from the given script assembly string (asm
). May
return a matching sub-class for the given script.
factory
Properties
asm
→ String
Returns the ASM string representation of the script. All data and integers
are provided in hex format.
no setter
compiled
→ Uint8List
Returns the copied compiled bytes for the script.
no setter
hashCode
→ int
The hash code for this object.
no setter inherited
length
→ int
no setter
ops
→ List <ScriptOp >
final
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited