New: LI.FI's API for Agentic Commerce is live — MCP Server, Agent Skills, and AI-first docs. Learn more
curl --request GET \
--url https://earn.li.fi/v1/chains \
--header 'x-lifi-api-key: <api-key>'[
{
"name": "Ethereum",
"chainId": 1,
"networkCaip": "eip155:1"
},
{
"name": "Base",
"chainId": 8453,
"networkCaip": "eip155:8453"
},
{
"name": "Arbitrum One",
"chainId": 42161,
"networkCaip": "eip155:42161"
}
]此端点返回 LI.FI 支持的所有区块链的信息,包括链 ID、名称、原生代币和其他相关详细信息。
curl --request GET \
--url https://earn.li.fi/v1/chains \
--header 'x-lifi-api-key: <api-key>'[
{
"name": "Ethereum",
"chainId": 1,
"networkCaip": "eip155:1"
},
{
"name": "Base",
"chainId": 8453,
"networkCaip": "eip155:8453"
},
{
"name": "Arbitrum One",
"chainId": 42161,
"networkCaip": "eip155:42161"
}
]Documentation Index
Fetch the complete documentation index at: https://docs.li.fi/llms.txt
Use this file to discover all available pages before exploring further.