Skip to main content

Function: useTokens()

useTokens(params?: {query: QueryOptions<Token[]>; }): UseQueryResult<Token[], Error>

Parameters

ParameterTypeDescription
params?objectNo required parameters.
params.query?QueryOptions<Token[]>See Tanstack Query - useQuery options.

Returns

UseQueryResult<Token[], Error>

Example

const {
data,
isLoading,
isError,
error,
refetch,
...moreUseQueryResults
} = useTokens();

See

API Documentation

Defined in

sdk-react-provider/src/lib/hooks.tsx:255