Developer Hub
🔮 For applications
SDK
deBridge
useDeBridgeSupportedChains

Returns supported chains for deBridge (opens in a new tab).

ℹ️

This hook is a wrapper around getDeBridgeSupportedChains function.

Usage

import { useDeBridgeSupportedChains } from '@azuro-org/sdk'
 
const { supportedChains, supportedChainIds, loading } = useDeBridgeSupportedChains()

Props

{
  enabled?: boolean // default value is true
} | undefined

Return Value

{
  supportedChains: Array<{
    chainId: number
    chainName: string
  }>
  supportedChainIds: Array<number>
  refetch: (options?: RefetchOptions | undefined) => Promise
  loading: boolean
}