useBuyInfer
Open the fiat on-ramp widget to buy INFER tokens and track purchase status.
import { useBuyInfer } from 'flowstack-sdk/wallet'Opens a fiat on-ramp widget so the user can purchase INFER tokens, exposing the in-progress purchase status. Part of the flowstack-sdk/wallet entry point.
Signature
const { buy, isBuying, status, error } = useBuyInfer()Returns
| Field | Type | Description |
|---|---|---|
buy | (amount?: number) => void | Opens the fiat on-ramp widget. |
isBuying | boolean | Purchase in progress. |
status | 'idle' | 'pending' | 'completed' | 'failed' | Current purchase status. |
error | string | null | Last error message. |
See also
useDeposit · useInferBalance · BuyInferModal
Source: README.md#usebuyinfer · Also available in llms-full.txt and registry.json.