Default Chains and Tokens
Squid Widget v2.0: Default Chains and Tokens Configuration Guide
This guide explains how to configure default chains and tokens for the Squid Widget v2.0. Note that there have been significant changes from previous versions.
Finding Chain IDs and Token Addresses
Before configuring, you'll need to know the correct chain IDs and token addresses:
Chain IDs:
Use Squid's API playground
Or access the chains endpoint directly
Token Addresses:
Use the tokens endpoint
Or filter by chain in the API playground (input the chain ID in the
/tokens
reference)
Configuring Initial Assets (Chains and Tokens)
In Squid v2.0, initialFromChainId
and initialToChainId
have been replaced by the initialAssets
object:
Configuring Default Tokens Per Chain
The defaultTokens
property has been renamed to defaultTokensPerChain
:
Removed Features
Please note that the following features have been removed in Squid v2.0:
favTokens
: Favorite tokens are no longer supported.Several other properties including
companyName
,titles
,enableExpress
,mainLogoUrl
, and others. Refer to the migration guide for a full list.
Full Example
Here's a complete example combining these configurations:
Last updated