跳转到主要内容
GET
/
v1
/
token
Fetch information about a Token
curl --request GET \
  --url https://li.quest/v1/token
{
  "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"
}

请求头

x-lifi-api-key
string

Authentication header, contact support if you want to get registered.

查询参数

chain
string
必填

Id or key of the chain that contains the token

token
string
必填

Address or symbol of the token on the requested chain

响应

address
string
必填

Address of the token

decimals
number<number>
必填

Number of decimals the token uses

symbol
string
必填

Symbol of the token

chainId
number<number>
必填

Id of the token's chain

name
string
必填

Name of the token

coinKey
string

Identifier for the token

logoURI
string

Logo of the token

priceUSD
string

Token price in USD