• Creates a TokenAmount from a number, string, Big, or bigint.

    Returns

    The token amount.

    Throws

    If the value exceeds the maximum allowed or is negative.

    Parameters

    • amount: bigint | BigSource

      The amount of tokens as a number, string, big or bigint.

    • decimals: number

    Returns TokenAmount

Generated using TypeDoc