Function getTokenDecimals

  • Gets the number of decimals for an ERC20 token.

    Returns

    • A promise that resolves with the number of decimals for the token.

    Throws

    Error if the input token instance is not an ERC20 token.

    Parameters

    • tokenInstance: ERC20

      An instance of an ERC20 token.

    Returns Promise<number>

Generated using TypeDoc