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

MATIC to POL migration: Please note that on the Polygon chain, the native token previously referred to as MATIC has been renamed to POL. Similarly, WMATIC is now referred to as WPOL. While the token symbols have changed, the underlying assets and their contract addresses remain the same unless token symbols are passed in the API.

On Ethereum, both POL and MATIC are available but with different contract addresses. Be sure to use the correct contract address when requesting token information for these assets on Ethereum

Last updated