The code hash of the script.
Static OptionalbyteThe bytes length of the entity, if it is fixed, otherwise undefined
StaticencodeEncode the entity into bytes
The entity to encode
The encoded bytes
StaticdecodeDecode the entity from bytes
StaticfromCreate an entity from bytes
StaticfromCreate an entity from a serializable object
The serializable object to create the entity from
The created entity
Check if the script is equal to another script.
The other script to compare with
True if the scripts are equal, false otherwise
StaticfromCreates 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.
StaticBaseGenerate a base class of CCC to create a serializable instance. This should be used with the codec decorator.
Calculate the hash of the entity
The hash of the entity
Convert the entity to a full-byte untrimmed Hex representation
The entity full-byte untrimmed hexadecimal representation
StaticBaseGenerate a base class of CCC to create a serializable Union instance. This should be used with the codec decorator.
Creates an instance of Script.