Hooks
useRelayChains
Fetch all relay supported chains
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.
Fetch all relay supported chains
| 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 chains api | ❌ |
| queryOptions | Tanstack query options. Refer to the Tanstack docs. | ❌ |
import { useRelayChains } from '@relayprotocol/relay-kit-hooks'
const { chains, viemChains } = useRelayChains()
import { queryRelayChains } from '@relayprotocol/relay-kit-hooks'
queryRelayChains()
Was this page helpful?