# useApproveAllowance

```ts
function useApproveAllowance(props?): UseMutationResult<TransactionReceipt, Error, UseApproveAllowanceVariables, unknown>;
```

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

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

## Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `props?` | `UseApproveAllowanceProps` | The props to use. |

## Returns

`UseMutationResult`\<`TransactionReceipt`, [`Error`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Error), `UseApproveAllowanceVariables`, `unknown`\>

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