Developer Hub
🔮 For applications
SDK
deBridge
useDeBridgeSupportedTokens

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

ℹ️

This hook is a wrapper around getDeBridgeSupportedTokens function.

Usage

import { useDeBridgeSupportedTokens } from '@azuro-org/sdk'
 
const { supportedTokens, supportedTokenAddresses, loading } = useDeBridgeSupportedTokens({
  chainId: 42161 // Arbitrum
})

Props

{
  chainId: number
  enabled?: boolean // default value is true
}

Return Value

{
  supportedTokens: Array<{
    address: string
    symbol: string,
    decimals: number,
    name: string,
    logoURI: string,
    tags: Array<string>
  }>
  supportedChainIds: Array<string>
  refetch: (options?: RefetchOptions | undefined) => Promise
  loading: boolean
}