useDeposit
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
| Field | Type | Description |
|---|---|---|
deposit | (amount: number) => Promise<string | null> | Deposit the given amount; resolves to the tx hash. |
isDepositing | boolean | Deposit transaction in flight. |
txHash | string | null | Hash of the deposit transaction. |
error | string | null | Last error message. |
See also
Source: README.md#usedeposit · Also available in llms-full.txt and registry.json.