amountLiteral
amountLiteral(
value):InstructionArg
Defined in: ootle/src/helpers/cbor-literal.ts:94
CBOR-encode an Amount (u128) the way the runtime’s minicbor codec does:
a plain CBOR unsigned integer while the value fits the CBOR integer range
(0..=u64::MAX), and an RFC 8949 tag-2 unsigned bignum (minimal-length
big-endian byte string) above it.
Wire-breaking against the pre-0.39 [lo_u64, hi_u64] digit-array form —
templates built against an older tari_template_lib cannot decode this.
Parameters
Section titled “Parameters”bigint
Returns
Section titled “Returns”InstructionArg
Throws
Section titled “Throws”if value is negative or overflows u128.