Skip to content

useApproveAllowance

useApproveAllowance(props?): UseMutationResult<TransactionReceipt, Error, UseApproveAllowanceVariables, unknown>

Defined in: synapse-react/src/erc20.ts:76

Approve the allowance of the ERC20 token to the payments contract.

Parameter Type Description
props? UseApproveAllowanceProps The props to use. UseApproveAllowanceProps

UseMutationResult<TransactionReceipt, Error, UseApproveAllowanceVariables, unknown>

The mutation to approve the allowance of the ERC20 token to the payments contract.