Skip to content

literalArg

literalArg(value): InstructionArg

Defined in: ootle/src/helpers/cbor-literal.ts:65

CBOR-encode a value into an InstructionArg::Literal by its JavaScript type: bigintAmount, string → CBOR text, boolean → CBOR bool, Uint8Array → CBOR byte string. For tagged on-chain addresses use resourceAddressLiteral / componentAddressLiteral instead — a raw address string would be encoded as plain text, not a tagged object key.

string | bigint | boolean | Uint8Array<ArrayBufferLike>

InstructionArg

if value is not one of the supported types.