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

      • Optionaldenomination?: AE_AMOUNT_FORMATS

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

      • OptionaltargetDenomination?: AE_AMOUNT_FORMATS

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

    Returns string