Skip to main content

Function: useTokens()

useTokens(params?): QueryResult<"tokens", Token[]>

Get tokens

Parameters

params? = {}

No required parameters.

params.query?: QueryOptions<Token[]>

See Tanstack Query - useQuery options.

Returns

QueryResult<"tokens", Token[]>

Example

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

See

API Documentation

Token interface

Defined in

hooks.tsx:289