• Creates a token amount from its integer representation and a number of decimals.

    Returns

    The token amount.

    Throws

    If the value/decimals exceeds the maximum allowed or is negative.

    Parameters

    • value: bigint

      The integer representation of the token amount.

    • decimals: number

      The decimals of the token amount, defining the precision at which amounts of the token can be specified.

    Returns TokenAmount

Generated using TypeDoc