Docs / wallet / useBuyInfer

useBuyInfer

hooknot for built apps

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

FieldTypeDescription
buy(amount?: number) => voidOpens the fiat on-ramp widget.
isBuyingbooleanPurchase in progress.
status'idle' | 'pending' | 'completed' | 'failed'Current purchase status.
errorstring | nullLast error message.

See also

useDeposit · useInferBalance · BuyInferModal

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