Canton dApp Booster
    Preparing search index...
    TokenAmountError:
        | "not-a-number"
        | "too-many-decimals"
        | "too-large"
        | "above-max"
        | "invalid-max"

    Why an amount is not usable. Codes rather than sentences: L2 ships no user-facing copy, so the consumer maps these to their own wording.

    const MESSAGES: Record<TokenAmountError, string> = {
    'not-a-number': 'Enter an amount',
    'too-many-decimals': 'At most 10 decimal places',
    'too-large': 'Larger than the ledger can hold',
    'above-max': 'More than you hold',
    'invalid-max': 'Balance unavailable',
    }