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.
Parameters
Section titled “Parameters”Parameter | Type | Description |
---|---|---|
props? | ApproveOperatorProps | The props for the deposit. |
Returns
Section titled “Returns”UseMutationResult
<TransactionReceipt
, Error
, { lockup
: bigint
; rate
: bigint
; }, unknown
>
The deposit mutation.