ParseTokenAmountOptions
Defined in: core/src/utils/token-amount.ts:137
Options for parseTokenAmount.
Properties
Section titled “Properties”allowNegative?
Section titled “allowNegative?”
optionalallowNegative?:boolean
Defined in: core/src/utils/token-amount.ts:143
Accept a leading -, for an int amount. Defaults to false: a ledger’s
amounts are nat, so a negative amount is refused with a RangeError
rather than failing later when the call is encoded.