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