# useWithdraw

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

Defined in: [synapse-react/src/payments/index.ts:184](https://github.com/FilOzone/synapse-sdk/blob/84fbb1046e164ad556ca1e641075796aca9db441/packages/synapse-react/src/payments/index.ts#L184)

Withdraw ERC20 tokens from the payments contract.

## Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `props?` | `UseWithdrawProps` | The props for the withdraw. |

## Returns

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

The withdraw mutation.