Skip to content

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.

bigint

InstructionArg

if amount is negative or overflows u128.