GET
/
v1
/
tokens
import { ChainType, getTokens } from '@lifi/sdk';
try {
  const tokens = await getTokens({
    chainTypes: [ChainType.EVM, ChainType.SVM],
  });
  console.log(tokens);
} catch (error) {
  console.error(error);
}
{
  "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"
    }
  ]
}

Headers

x-lifi-api-key
string

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

Query Parameters

chains
string

Restrict the resulting tokens to the given chains

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.

Response

200 - application/json

The response is of type object.