Docs / wallet / useInferBalance

useInferBalance

hooknot for built apps

Read the connected wallet's INFER token balance, including available balance and query credits.

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

Returns the connected wallet's INFER token balance for display. Part of the flowstack-sdk/wallet entry point.

Signature

const { data, isLoading, error, refetch } = useInferBalance()

Returns

FieldTypeDescription
dataInferBalance | nullBalance object: { balance, available, queryCredits, balanceWei, heldWei, availableWei }.
isLoadingbooleanFetch in flight.
errorstring | nullLast error message.
refetch() => Promise<void>Manually re-fetch the balance.

See also

useAgentBalance · useDeposit · useBuyInfer · InferBalanceBadge

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