# useApproveAllowance

> **useApproveAllowance**(`props?`): `UseMutationResult`\<`TransactionReceipt`, [`Error`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Error), [`UseApproveAllowanceVariables`](/reference/filoz/synapse-react/type-aliases/useapproveallowancevariables/), `unknown`\>

Defined in: [synapse-react/src/erc20.ts:70](https://github.com/FilOzone/synapse-sdk/blob/b11ef4f7e3c201d8bba29973a09628063e6547b1/packages/synapse-react/src/erc20.ts#L70)

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

## Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `props?` | [`UseApproveAllowanceProps`](/reference/filoz/synapse-react/interfaces/useapproveallowanceprops/) | The props to use. [UseApproveAllowanceProps](/reference/filoz/synapse-react/interfaces/useapproveallowanceprops/) |

## Returns

`UseMutationResult`\<`TransactionReceipt`, [`Error`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Error), [`UseApproveAllowanceVariables`](/reference/filoz/synapse-react/type-aliases/useapproveallowancevariables/), `unknown`\>

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