Function formatAmount

  • Convert amount from one to other denomination

    Parameters

    • value: string | number | bigint | BigNumber

      amount to convert

    • options: {
          denomination?: AE_AMOUNT_FORMATS;
          targetDenomination?: AE_AMOUNT_FORMATS;
      }

      options

      • Optional denomination?: AE_AMOUNT_FORMATS

        denomination of amount, can be ['ae', 'aettos']

      • Optional targetDenomination?: AE_AMOUNT_FORMATS

        target denomination, can be ['ae', 'aettos']

    Returns string

Generated using TypeDoc