# useApproveOperator

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

Defined in: [synapse-react/src/payments/index.ts:255](https://github.com/FilOzone/synapse-sdk/blob/d80afb89df823a5628b86ab0edae21dc95850f82/packages/synapse-react/src/payments/index.ts#L255)

Approve a service contract to act as an operator for payment rails.

## Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `props?` | [`ApproveOperatorProps`](/reference/filoz/synapse-react/type-aliases/approveoperatorprops/) | The props for the deposit. [ApproveOperatorProps](/reference/filoz/synapse-react/type-aliases/approveoperatorprops/) |

## Returns

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

The deposit mutation.