Hooks
useTokenList
Curated token searching
Was this page helpful?
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Curated token searching
| Parameter | Description | Required |
|---|---|---|
| baseApiUrl | Base api url for the relay api, defaults to https://api.relay.link but can also be configured to https://api.testnets.relay.link | ❌ |
| options | Query parameters that map directly to the currencies api | ❌ |
| queryOptions | Tanstack query options. Refer to the Tanstack docs. | ❌ |
import { useTokenList } from '@relayprotocol/relay-kit-hooks'
const { data: suggestedTokens } = useTokenList(
"https://api.relay.link",
{
limit: 20,
term: "usdc"
}
)
import { queryTokenList } from '@relayprotocol/relay-kit-hooks'
queryTokenList(
"https://api.relay.link",
{
limit: 20,
term: "usdc"
}
)
Was this page helpful?