const getChains = async () => {
const result = await axios.get('https://testnet.api.squidrouter.com/v1/chains');
return result.data;
}
{
"status": true,
"data": {
"chains": [
{
"chainName": "Ethereum",
"chainType": "evm",
"rpc": "http://localhost:8500/0",
"networkName": "Ethereum Local",
"chainId": 1,
"nativeCurrency": {
"name": "Ethereum",
"symbol": "ETH",
"decimals": 18,
"icon": "https://assets.coingecko.com/coins/images/279/small/ethereum.png?1595348880"
},
"blockExplorerUrls": [
"https://etherscan.io/"
],
"chainNativeContracts": {
"wrappedNativeToken": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"ensRegistry": "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",
"multicall": "0x5e227AD1969Ea493B43F840cfF78d08a6fc17796",
"usdcToken": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
},
"axelarContracts": {
"gateway": "0x4F4495243837681061C4743b74B3eEdf548D56A5",
"forecallable": ""
}
},
...
]
}
}
{
"status": true,
"data": {
"tokens": [
{
"chainId": 1284,
"address": "0xAcc15dC74880C9944775448304B263D191c6077F",
"name": "Wrapped GLMR",
"symbol": "WGLMR",
"decimals": 18,
"crosschain": false,
"commonKey": "uwglmr",
"logoURI": "https://assets.coingecko.com/coins/images/22459/small/glmr.png?1641880985",
"coingeckoId": "wrapped-moonbeam"
},
...
]
}
}