Getting Token Information

Retrieve information about a Token.

The complete API documentation for our /token endpoint can be found here.

To retrieve information about a token include the chain's id or key (for example POL) and the token's address or symbol (for example DAI) in the query parameters.

The chain's id or key can be retrieved by querying our /chains endpoint.

const getToken = async (chain, token) => {
    const result = await axios.get('https://li.quest/v1/token', {
        params: {
            chain,
            token,
        }
    });
    return result.data;
}

The result for a request with chain: 'POL' and token: 'DAI' will look like the following:

{
  "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"
}

Last updated