The code hash of the script.
The hash type of the script.
The arguments for the script.
Static
Optional
byteThe bytes length of the entity, if it is fixed, otherwise undefined
Check if the script is equal to another script.
The other script to compare with
True if the scripts are equal, false otherwise
Static
fromCreates a Script instance from a ScriptLike object.
A ScriptLike object or an instance of Script.
A Script instance.
Static
fromCreates a Script instance from client and known script.
A ScriptLike object or an instance of Script.
A KnownScript enum.
Args for the script.
A promise that resolves to the script instance.
Static
encodeEncode the entity into bytes
The entity to encode
The encoded bytes
Static
decodeStatic
from
Creates an instance of Script.