useApproveAllowance
function useApproveAllowance(props?): UseMutationResult<TransactionReceipt, Error, UseApproveAllowanceVariables, unknown>;Defined in: packages/synapse-react/src/erc20.ts:70
Approve the allowance of the ERC20 token to the payments contract.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
props? | UseApproveAllowanceProps | The props to use. |
Returns
Section titled “Returns”UseMutationResult<TransactionReceipt, Error, UseApproveAllowanceVariables, unknown>
The mutation to approve the allowance of the ERC20 token to the payments contract.