Skip to main content

Overview

getSwapChains returns the networks where tokens can be swapped for your environment. Use it to build a network picker instead of hardcoding a list, then pass a network to getSwapTokens to list its tokens. The list respects your environment’s swap settings and can differ by the user’s region, so a network that can’t be swapped on is not returned. Networks that this SDK version does not support are also left out.

Usage

Parameters

Returns

Promise<SwapChainsResponse>: an object with a chains array. Each entry is a SwapCatalogChain: If no swap provider is available for your environment or the user’s region, chains is an empty array.

Examples

Show only the networks of the user’s wallet

A swap uses one wallet, so offer only the networks on that wallet’s chain.

React

useGetSwapChains returns the same list in data.
Last modified on November 27, 2026