Skip to content

useApproveOperator

useApproveOperator(props?): UseMutationResult<TransactionReceipt, Error, { lockup: bigint; rate: bigint; }, unknown>

Defined in: packages/iso-filecoin-synapse/src/hooks/payments.ts:325

Approve the operator to deposit and withdraw ERC20 tokens from the payments contract.

ParameterTypeDescription
props?ApproveOperatorPropsThe props for the deposit.

UseMutationResult<TransactionReceipt, Error, { lockup: bigint; rate: bigint; }, unknown>

The deposit mutation.