Function approve

  • Approves the specified token instance for a given amount or tokenId and the handler address.

    Returns

    A promise that resolves to a contract receipt once the approval transaction is executed.

    Parameters

    • amountOrIdForApproval: BigNumber

      The amount or tokenId to be approved.

    • tokenInstance: ERC721MinterBurnerPauser | ERC20

      The ERC20 or ERC721 token instance to be approved.

    • handlerAddress: string

      The handler address for which the token is being approved.

    • confirmations: number

      The number of confirmations required before the transaction is considered successful.

    • Optional overrides: PayableOverrides

      Optional overrides for the transaction, such as gas price, gas limit,

    Returns Promise<ContractReceipt>

Generated using TypeDoc