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:
bigint → Amount, 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.
Parameters
Section titled “Parameters”string | bigint | boolean | Uint8Array<ArrayBufferLike>
Returns
Section titled “Returns”InstructionArg
Throws
Section titled “Throws”if value is not one of the supported types.