curl --request GET \
--url https://li.quest/v1/chains{
"chains": [
{
"key": "eth",
"name": "Ethereum",
"chainType": "EVM",
"coin": "ETH",
"id": 1,
"mainnet": true,
"logoURI": "https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/ethereum.svg",
"tokenlistUrl": "https://gateway.ipfs.io/ipns/tokens.uniswap.org",
"multicallAddress": "0xcA11bde05977b3631167028862bE2a173976CA11",
"metamask": {
"chainId": "0x1",
"blockExplorerUrls": [
"https://etherscan.io/"
],
"chainName": "Ethereum Mainnet",
"nativeCurrency": {
"name": "ETH",
"symbol": "ETH",
"decimals": 18
},
"rpcUrls": [
"https://mainnet.infura.io/v3/9aa3d95b3bc440fa88ea12eaa4456161"
]
},
"nativeToken": {
"address": "0x0000000000000000000000000000000000000000",
"decimals": 18,
"symbol": "ETH",
"chainId": 1,
"coinKey": "ETH",
"name": "ETH",
"logoURI": "https://static.debank.com/image/token/logo_url/eth/935ae4e4d1d12d59a99717a24f2540b5.png",
"priceUSD": "2582.35"
}
},
{
"key": "pol",
"name": "Polygon",
"chainType": "EVM",
"coin": "MATIC",
"id": 137,
"mainnet": true,
"logoURI": "https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/polygon.svg",
"tokenlistUrl": "https://unpkg.com/[email protected]/build/quickswap-default.tokenlist.json",
"faucetUrls": [
"https://stakely.io/faucet/polygon-matic"
],
"multicallAddress": "0xcA11bde05977b3631167028862bE2a173976CA11",
"metamask": {
"chainId": "0x89",
"blockExplorerUrls": [
"https://polygonscan.com/",
"https://explorer-mainnet.maticvigil.com/"
],
"chainName": "Matic(Polygon) Mainnet",
"nativeCurrency": {
"name": "MATIC",
"symbol": "MATIC",
"decimals": 18
},
"rpcUrls": [
"https://polygon-rpc.com/",
"https://polygon.llamarpc.com/"
]
},
"nativeToken": {
"address": "0x0000000000000000000000000000000000000000",
"decimals": 18,
"symbol": "MATIC",
"chainId": 137,
"coinKey": "MATIC",
"name": "MATIC",
"logoURI": "https://static.debank.com/image/matic_token/logo_url/matic/6f5a6b6f0732a7a235131bd7804d357c.png",
"priceUSD": "0.881307"
}
},
{
"key": "bsc",
"name": "BSC",
"chainType": "EVM",
"coin": "BNB",
"id": 56,
"mainnet": true,
"logoURI": "https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/bsc.svg",
"tokenlistUrl": "https://tokens.pancakeswap.finance/pancakeswap-extended.json",
"faucetUrls": [
"https://stakely.io/faucet/bsc-chain-bnb"
],
"multicallAddress": "0xcA11bde05977b3631167028862bE2a173976CA11",
"metamask": {
"chainId": "0x38",
"blockExplorerUrls": [
"https://bscscan.com/"
],
"chainName": "Binance Smart Chain Mainnet",
"nativeCurrency": {
"name": "BNB",
"symbol": "BNB",
"decimals": 18
},
"rpcUrls": [
"https://bsc-dataseed.binance.org/",
"https://bsc-dataseed1.defibit.io/",
"https://bsc-dataseed1.ninicoin.io/"
]
},
"nativeToken": {
"address": "0x0000000000000000000000000000000000000000",
"decimals": 18,
"symbol": "BNB",
"chainId": 56,
"coinKey": "BNB",
"name": "BNB",
"logoURI": "https://static.debank.com/image/bsc_token/logo_url/bsc/8bfdeaa46fe9be8f5cd43a53b8d1eea1.png",
"priceUSD": "266"
}
},
{
"key": "dai",
"name": "Gnosis",
"chainType": "EVM",
"coin": "DAI",
"id": 100,
"mainnet": true,
"logoURI": "https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/gnosis.svg",
"tokenlistUrl": "https://tokens.honeyswap.org/",
"faucetUrls": [
"https://stakely.io/faucet/xdai-chain"
],
"multicallAddress": "0xcA11bde05977b3631167028862bE2a173976CA11",
"metamask": {
"chainId": "0x64",
"blockExplorerUrls": [
"https://blockscout.com/xdai/mainnet/"
],
"chainName": "Gnosis Chain",
"nativeCurrency": {
"name": "xDai",
"symbol": "xDai",
"decimals": 18
},
"rpcUrls": [
"https://rpc.gnosischain.com/",
"https://rpc.xdaichain.com/",
"https://dai.poa.network/"
]
},
"nativeToken": {
"address": "0x0000000000000000000000000000000000000000",
"decimals": 18,
"symbol": "xDai",
"chainId": 100,
"coinKey": "XDAI",
"name": "xDai",
"logoURI": "https://static.debank.com/image/xdai_token/logo_url/xdai/1207e67652b691ef3bfe04f89f4b5362.png",
"priceUSD": "1.0002"
}
}
]
}此端点返回 LI.FI 支持的所有区块链的信息,包括链 ID、名称、原生代币和其他相关详细信息。
curl --request GET \
--url https://li.quest/v1/chains{
"chains": [
{
"key": "eth",
"name": "Ethereum",
"chainType": "EVM",
"coin": "ETH",
"id": 1,
"mainnet": true,
"logoURI": "https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/ethereum.svg",
"tokenlistUrl": "https://gateway.ipfs.io/ipns/tokens.uniswap.org",
"multicallAddress": "0xcA11bde05977b3631167028862bE2a173976CA11",
"metamask": {
"chainId": "0x1",
"blockExplorerUrls": [
"https://etherscan.io/"
],
"chainName": "Ethereum Mainnet",
"nativeCurrency": {
"name": "ETH",
"symbol": "ETH",
"decimals": 18
},
"rpcUrls": [
"https://mainnet.infura.io/v3/9aa3d95b3bc440fa88ea12eaa4456161"
]
},
"nativeToken": {
"address": "0x0000000000000000000000000000000000000000",
"decimals": 18,
"symbol": "ETH",
"chainId": 1,
"coinKey": "ETH",
"name": "ETH",
"logoURI": "https://static.debank.com/image/token/logo_url/eth/935ae4e4d1d12d59a99717a24f2540b5.png",
"priceUSD": "2582.35"
}
},
{
"key": "pol",
"name": "Polygon",
"chainType": "EVM",
"coin": "MATIC",
"id": 137,
"mainnet": true,
"logoURI": "https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/polygon.svg",
"tokenlistUrl": "https://unpkg.com/[email protected]/build/quickswap-default.tokenlist.json",
"faucetUrls": [
"https://stakely.io/faucet/polygon-matic"
],
"multicallAddress": "0xcA11bde05977b3631167028862bE2a173976CA11",
"metamask": {
"chainId": "0x89",
"blockExplorerUrls": [
"https://polygonscan.com/",
"https://explorer-mainnet.maticvigil.com/"
],
"chainName": "Matic(Polygon) Mainnet",
"nativeCurrency": {
"name": "MATIC",
"symbol": "MATIC",
"decimals": 18
},
"rpcUrls": [
"https://polygon-rpc.com/",
"https://polygon.llamarpc.com/"
]
},
"nativeToken": {
"address": "0x0000000000000000000000000000000000000000",
"decimals": 18,
"symbol": "MATIC",
"chainId": 137,
"coinKey": "MATIC",
"name": "MATIC",
"logoURI": "https://static.debank.com/image/matic_token/logo_url/matic/6f5a6b6f0732a7a235131bd7804d357c.png",
"priceUSD": "0.881307"
}
},
{
"key": "bsc",
"name": "BSC",
"chainType": "EVM",
"coin": "BNB",
"id": 56,
"mainnet": true,
"logoURI": "https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/bsc.svg",
"tokenlistUrl": "https://tokens.pancakeswap.finance/pancakeswap-extended.json",
"faucetUrls": [
"https://stakely.io/faucet/bsc-chain-bnb"
],
"multicallAddress": "0xcA11bde05977b3631167028862bE2a173976CA11",
"metamask": {
"chainId": "0x38",
"blockExplorerUrls": [
"https://bscscan.com/"
],
"chainName": "Binance Smart Chain Mainnet",
"nativeCurrency": {
"name": "BNB",
"symbol": "BNB",
"decimals": 18
},
"rpcUrls": [
"https://bsc-dataseed.binance.org/",
"https://bsc-dataseed1.defibit.io/",
"https://bsc-dataseed1.ninicoin.io/"
]
},
"nativeToken": {
"address": "0x0000000000000000000000000000000000000000",
"decimals": 18,
"symbol": "BNB",
"chainId": 56,
"coinKey": "BNB",
"name": "BNB",
"logoURI": "https://static.debank.com/image/bsc_token/logo_url/bsc/8bfdeaa46fe9be8f5cd43a53b8d1eea1.png",
"priceUSD": "266"
}
},
{
"key": "dai",
"name": "Gnosis",
"chainType": "EVM",
"coin": "DAI",
"id": 100,
"mainnet": true,
"logoURI": "https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/gnosis.svg",
"tokenlistUrl": "https://tokens.honeyswap.org/",
"faucetUrls": [
"https://stakely.io/faucet/xdai-chain"
],
"multicallAddress": "0xcA11bde05977b3631167028862bE2a173976CA11",
"metamask": {
"chainId": "0x64",
"blockExplorerUrls": [
"https://blockscout.com/xdai/mainnet/"
],
"chainName": "Gnosis Chain",
"nativeCurrency": {
"name": "xDai",
"symbol": "xDai",
"decimals": 18
},
"rpcUrls": [
"https://rpc.gnosischain.com/",
"https://rpc.xdaichain.com/",
"https://dai.poa.network/"
]
},
"nativeToken": {
"address": "0x0000000000000000000000000000000000000000",
"decimals": 18,
"symbol": "xDai",
"chainId": 100,
"coinKey": "XDAI",
"name": "xDai",
"logoURI": "https://static.debank.com/image/xdai_token/logo_url/xdai/1207e67652b691ef3bfe04f89f4b5362.png",
"priceUSD": "1.0002"
}
}
]
}The apiKey allows you to authenticate on the API.
Restrict the resulting tokens to the given chainTypes.
显示 子属性
Short string represenation of the chain
Name of the chain
The native coin of the chain
Unique id of the chain
Whether the chain is mainnet or not
Type of the chain
Logo of the chain
Url to the list of available tokens
List of available faucets
The multicall contract address
Information about the chain from metamask. Contains data about RPCs and block explorers
显示 子属性
The native token info for the chain
显示 子属性
Address of the token
Number of decimals the token uses
Symbol of the token
Id of the token's chain
Name of the token
Identifier for the token
Logo of the token
Token price in USD
{
"address": "0x8f3cf7ad23cd3cadbd9735aff958023239c6a063",
"symbol": "DAI",
"decimals": 18,
"chainId": 137,
"name": "(PoS) Dai Stablecoin",
"coinKey": "DAI",
"priceUSD": "1",
"logoURI": "https://static.debank.com/image/matic_token/logo_url/0x8f3cf7ad23cd3cadbd9735aff958023239c6a063/549c4205dbb199f1b8b03af783f35e71.png"
}