useWithdraw
useWithdraw(
props?
):UseMutationResult
<TransactionReceipt
,Error
, {amount
:bigint
;from?
:`0x${string}`
; },unknown
>
Defined in: packages/iso-filecoin-synapse/src/hooks/payments.ts:239
Withdraw ERC20 tokens from the payments contract.
Parameters
Section titled “Parameters”Parameter | Type | Description |
---|---|---|
props? | WithdrawProps | The props for the deposit. |
Returns
Section titled “Returns”UseMutationResult
<TransactionReceipt
, Error
, { amount
: bigint
; from?
: `0x${string}`
; }, unknown
>
The deposit mutation.