Skip to main content

Function: useBalances()

useBalances(params?): QueryResult<"balances", Balances[]>

Get balances

Parameters

params? = {}

No required parameters.

params.profileId?: string

Fetch balances for a specific profile.

params.query?: QueryOptions<Balances[]>

See Tanstack Query - useQuery options.

Returns

QueryResult<"balances", Balances[]>

Example

const {
balances, // useQuery's `data` property
isLoading,
isError,
error,
refetch,
...moreUseQueryResults
} = useBalances();

See

API Documentation

Balances interface

Defined in

hooks.tsx:337