跳转到主要内容
GET
/
v1
/
tokens
Fetch all known tokens
curl --request GET \
  --url https://li.quest/v1/tokens
{
  "1": [
    {
      "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"
    }
  ]
}
使用此端点可以列出当前 LI.FI 支持的代币。您可以组合多个筛选条件,只返回指定链或带有特定标签的代币。

过滤代币

链过滤

chains 查询参数设置为以逗号分隔的链标识列表(例如 ETH,ARB,OP)。仅返回部署在这些网络上的代币。

标签过滤

使用 tags 查询参数限制返回结果,仅包含具有特定 LI.FI 标签的代币。目前公开支持的标签只有 stablecoin
链和标签过滤条件可以同时使用。响应中只包含满足所有条件的代币。

示例

获取完整代币列表

curl "https://li.quest/v1/tokens"

获取所有稳定币

curl "https://li.quest/v1/tokens?tags=stablecoin"

获取 Arbitrum 网络的稳定币

curl "https://li.quest/v1/tokens?chains=ARB&tags=stablecoin"
未来可能会提供更多标签。目前仅支持 stablecoin

请求头

x-lifi-api-key
string

Authentication header, register in the LI.FI Partner Portal (https://portal.li.fi/ ) to get your API Key.

查询参数

chains
string

Restrict the resulting tokens to the given chains

tags
string

Restrict the resulting tokens to the given token tags (comma separated)

chainTypes
string

Restrict the resulting tokens to the given chainTypes.

minPriceUSD
number

Filters results by minimum token price in USD. Minimum value for this parameter is 0. Defaults to 0.0001 USD.

响应

200 - application/json
1
Root Type for Token · object[]

The requested tokens