Getting all supported Chains
Find out which chains we currently support.
The full API documentation for our /chains endpoint can be found here.
We are constantly adding new chains to our ecosystem to enable more and more token transfers.
To get a list of all chains that are currently supported, the /chains endpoint can be queried:
1
const getChains = async () => {
2
const result = await axios.get('https://li.quest/v1/chains');
3
return result.data;
4
}
Copied!
The result contains a list of chains which looks the following:
1
{
2
"chains": [
3
{
4
"id": 1,
5
"key": "eth",
6
"name": "Ethereum",
7
"coin": "ETH",
8
"mainnet": true,
9
"logoURI": "https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/ethereum.png",
10
"tokenlistUrl": "https://gateway.ipfs.io/ipns/tokens.uniswap.org",
11
"multicallAddress": "0x5BA1e12693Dc8F9c48aAD8770482f4739bEeD696",
12
"metamask": { // this information is required to add the chain to your MetaMask wallet
13
"chainId": "0x1",
14
"blockExplorerUrls": [
15
"https://etherscan.io/"
16
],
17
"chainName": "Ethereum Mainnet",
18
"nativeCurrency": {
19
"name": "ETH",
20
"symbol": "ETH",
21
"decimals": 18
22
},
23
"rpcUrls": [
24
"https://mainnet.infura.io/v3/9aa3d95b3bc440fa88ea12eaa4456161"
25
]
26
}
27
},
28
... // all other supported chains will be present in the list
29
]
30
}
Copied!
Copy link