Interface ScriptFunctionArgument

Represents an argument for script functions, providing methods to serialize and convert to bytes.

interface ScriptFunctionArgument {
    bcsToBytes(): Uint8Array;
    bcsToHex(): Hex;
    serialize(serializer: Serializer): void;
    serializeForScriptFunction(serializer: Serializer): void;
}

Hierarchy (view full)

Methods

  • Serialize an argument to BCS-serialized bytes as a type aware byte sequence. The byte sequence contains an enum variant index followed by the BCS-serialized bytes for a typed argument.

    Parameters

    Returns void