Skip to main content

formatToken

Callable

  • formatToken(number?: string | BigNumber, decimals?: string | number): undefined | string

  • Formats a Bignumber to a string and displays 6 decimal places.


    Parameters

    • optionalnumber: string | BigNumber
    • decimals: string | number = 18

    Returns undefined | string