microTariLiteral
microTariLiteral(
amount):InstructionArg
Defined in: ootle/src/helpers/amount.ts:18
Encodes a µTari amount as a BOR-CBOR-encoded hex Literal instruction argument.
Delegates to amountLiteral: the runtime’s InstructionArg::Literal carries
a hex string whose bytes are a tari_bor::encode(value) CBOR payload, not the
decimal-string form. Keeping the public type as bigint preserves precision for
values above Number.MAX_SAFE_INTEGER.
Parameters
Section titled “Parameters”amount
Section titled “amount”bigint
Returns
Section titled “Returns”InstructionArg
Throws
Section titled “Throws”if amount is negative or overflows u128.