Skip to content

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.

ParameterTypeDescription
props?UseApproveAllowancePropsThe props to use.

UseMutationResult<TransactionReceipt, Error, UseApproveAllowanceVariables, unknown>

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