The name of the argument.
The CLValue associated with this argument.
Static fromStatic toConverts a NamedArg object to a Uint8Array for serialization.
The method encodes the name of the argument as a UTF-8 string, followed by the serialized
bytes of its value. The resulting Uint8Array can be used for further processing, such as
storage or transmission.
A Uint8Array representing the serialized NamedArg.
const namedArg = new NamedArg("arg1", CLValue.u32(42));
const serializedBytes = YourClass.toBytesWithNamedArg(namedArg);
console.log(serializedBytes); // Logs the serialized bytes.
The NamedArg object to serialize. It contains a name and a value.
Generated using TypeDoc
Represents a named argument with a name and associated
CLValue, which can be serialized to bytes.