Squid Dev Documentation
Ask or search…
⌃K

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 here, or at our API's chains endpoint.
All tokens and their IDs can be found at our API's tokens endpoint, or you can filter them by chain at our API playground by visiting the /tokens reference here 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

favTokens: [
{
address: "0x539bdE0d7Dbd336b79148AA742883198BBF60342", // Token address for MAGIC
chainId: 42161, // Chain ID for Arbitrum
},
{
address: "0x0E358838ce72d5e61E0018a2ffaC4bEC5F4c88d2", // Token address for STELLA
chainId: 1284, // Chain ID for Moonbeam
},
]