Chains
Last updated
;(async () => {
const payload = {
integratorId: "xxx"
};
const encoded = encodeURIComponent(JSON.stringify(payload));
const url = `https://xswap.link/api/chains/v1?data=${encoded}`;
const res = await fetch(url, {
method: "GET",
headers: { "Content-Type": "application/json" },
});
const chains = await res.json();
console.log("All chains:", chains);
})();[
{
"ecosystem": "evm",
"chainId": "1",
"name": "ethereum",
"ccipChainId": "5009297550715157269",
"tokenSymbol": "ETH",
"bridgeSupported": true,
"swapSupported": true,
"supportedDstForBridge": ["42161", "592", ...],
"supportedDstForSwap": ["1", "42161", ...]
},
{
"ecosystem": "solana",
"chainId": "mainnet-beta",
"name": "solana",
"ccipChainId": "124615329519749607",
"tokenSymbol": "SOL",
"bridgeSupported": true,
"swapSupported": true,
"supportedDstForBridge": ["56", "8453", ...],
"supportedDstForSwap": ["mainnet-beta", ...]
},
...
]