Default Chains and Tokens

To customize which chains and tokens are displayed on loading the widget, you will need the chain ID and token address.

A full list of chains and their IDs can be found via Squid's API playground herearrow-up-right, or at our API's chains endpointarrow-up-right.

All tokens and their IDs can be found at our API's tokens endpointarrow-up-right, or you can filter them by chain at our API playground by visiting the /tokens reference herearrow-up-right and inputting the chain's ID.

Default chains: initialFromChainID and initialToChainID

initialFromChainId: 42161, // eg. Arbitrum
initialToChainId: 1284 // eg. Moonbeam

Default tokens: defaultTokens

defaultTokens: [
  {
    address: "0xd4d42F0b6DEF4CE0383636770eF773390d85c61A", // Token address for SUSHI
    chainId: 42161, // Chain ID for Arbitrum
  },
  {
    address: "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", // Token address for GLMR
    chainId: 1284, // Chain ID for Moonbeam
  },
]

Favourite tokens: favTokens

Last updated