# 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/7fdc04df4e3c52366a9f0cd55da4c05e20b2ed82/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.