Squid Dev Documentation
  • Getting Started
    • Overview
    • Get an Integrator ID
    • Integrator Quickstart
  • Widget Integration
    • Add A Widget
      • Swap widget
        • Getting Started
        • Installing the Widget
        • React Installation
        • NextJS Installation
        • Vite Installation
        • Iframe Installation
        • Customization Guide
          • Default User Settings
          • Configuring Content
          • Default Chains and Tokens
          • Configuration Types
          • Collect Fees
        • Information for Integrators
        • Set default chains and tokens via URL
        • Errors
    • Upgrade Your Widget
  • API & SDK Integration
    • API
      • Swap & Bridge Example
      • Staking Example
      • Cross-chain NFT Purchase Example
      • Get Route Status
    • SDK
      • Cross-chain Swap Example
      • Staking Example
      • Cross-chain NFT Purchase Example
      • Get Route Status
    • Key Concepts
      • Route Request Parameters
      • Get a route
      • Execute the route
      • 🪝Hooks
        • How do hooks work
        • Build a preHook
        • Build a postHook
        • Using the full ERC20 or Native balance in a call
        • ❗Transfer the remainder to the user
        • Get a route and execute as normal
      • Express
      • Track status
      • Types
      • Collect Fees
      • Get supported tokens and chains
    • Coral: Intent Swaps
      • Integrating Coral
    • NEW: Bitcoin and Solana
  • Adding Tokens
    • Whitelist a Token
    • Interchain Token(ITS) Listings
      • How To List
    • Circle's EURC Integration Guide
  • Adding Chains
    • Integrate Your Chain
  • Additional Resources
    • Contracts
    • Additional Dev Resources
      • Choose How To Integrate Squid
      • Squid x Tenderly
      • Testnet or Mainnet?
      • Understanding Gas Payments
      • Supported Chains and Tokens
      • Request a new supported token
      • Liquidity Sources
        • axlASSET Liquidity
      • Integrator type specific docs
        • DEXs
        • Aggregators
        • NFTs
      • Setting up an EVM signer
      • Setting up Cosmos signer
      • Contract addresses
      • SDK easter eggs
        • Setting toAmount
        • getAllBalances
        • Advanced set up
        • Manually approve a route
        • Manually approve an ERC20
      • Whitelist a token
      • Security & Audits
        • Security
        • Audits
        • Axelar
      • Get an integrator-id
    • Architecture
      • FAQ
      • Liquidity model
      • Architecture
      • General message passing (GMP)
      • Transaction times and fees
      • Fallback behaviour on failed transactions
      • Axelar
    • Brand Assets
      • "Powered by Squid" Policy
    • Audits & Security
    • Contact
  • Changelog
    • SDK
      • v1.3
      • v1.2
    • API
      • v1.9
      • v1.8
      • v1.7
      • v1.6
Powered by GitBook
On this page
  • Default chains: initialFromChainID and initialToChainID
  • Default tokens: defaultTokens
  • Favourite tokens: favTokens
  1. Old v2 Documentation (Deprecated)
  2. Add A Widget
  3. Swap widget
  4. Customization Guide

Default Chains and Tokens

Last updated 11 months ago

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 , or at our API's .

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