Docs / wallet / useDeposit

useDeposit

hooknot for built apps

Deposit INFER tokens from the connected wallet and track the resulting transaction hash.

import { useDeposit } from 'flowstack-sdk/wallet'

Deposits a token amount from the connected wallet, returning the transaction hash. Part of the flowstack-sdk/wallet entry point.

Signature

const { deposit, isDepositing, txHash, error } = useDeposit()

Returns

FieldTypeDescription
deposit(amount: number) => Promise<string | null>Deposit the given amount; resolves to the tx hash.
isDepositingbooleanDeposit transaction in flight.
txHashstring | nullHash of the deposit transaction.
errorstring | nullLast error message.

See also

useInferBalance · useBuyInfer

Source: README.md#usedeposit · Also available in llms-full.txt and registry.json.