Skip to content

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.

ParameterTypeDescription
props?DepositPropsThe props for the deposit.

UseMutationResult<TransactionReceipt, Error, { amount: bigint; from?: `0x${string}`; }, unknown>

The deposit mutation.