• Returns a string which displays the specified amount and denom in a user-friendly way

    Parameters

    • amount: string | number | bigint

      the raw token amount as an integer

    • unifiedDenom: string

      the denom of the token

    • trimTrailingZeros: boolean = false

      If true, the result won't have trailing zeros. e.g. "0.100000" becomes "0.1"

    • showSymbol: boolean = true

      If true, token symbol will be appended to the final string

    Returns string

    A user friendly string, e.g. "1.234567 SEI"