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();