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
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
fromCheck if the entity is equal to another entity
The other entity to compare with
True if the entities are equal, false otherwise
Creates an instance of Script.