Function toString

  • Converts a Mas value to a string with rounding approximation.

    Parameters

    • value: bigint

      The Mas value.

    • decimalPlaces: null | number = null

      The number of decimal places to include in the string.

    Returns string

    The value as a string.

    Throws

    An error if the value is too large to be represented by a U256.