Appearance
@swapped/connect-sdk / core / AmountValidationCode
Type Alias: AmountValidationCode
AmountValidationCode =
"invalid_amount"|"amount_zero"|"below_min"|"above_balance"|"above_spendable"
Defined in: src/types/amount-input.types.ts:10
Stable codes for amount-field validation failures. Consumers can switch on these for i18n instead of parsing AmountValidationError.message.
above_balance— hard ceiling: amount exceeds the raw (aggregated) balance.above_spendable— soft ceiling: amount exceeds balance minus the fee reserve.