List the tokens of a token list on one chain

Returns the tokens a token-list provider lists on one chain, keyed by token address. The default provider, 1inch, lists the whitelisted tokens: the tokens 1inch has reviewed and shows in its apps. An unknown provider returns an empty result.

GEThttps://api.1inch.com/token/v1.5/{chainId}
Supported on:
EthereumBaseSolanaBNB ChainRobinhood ChainArbitrumAvalancheZKsyncGnosisOptimismPolygonLineaSonicUnichain

Parameters

chainId
* integer (Enum)path
provider
string query
country
string query

Request Body

This request doesn’t have any request body.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
const axios = require('axios');

async function httpCall() {
  const url = 'https://api.1inch.com/token/v1.5/1';

  const config = {
    headers: {
      Authorization: `Bearer ${API_KEY}`,
    },
    params: {
      country: 'US',
    },
    paramsSerializer: {
      indexes: null,
    },
  };

  try {
    const response = await axios.get(url, config);
    console.log(response.data);
  } catch (error) {
    console.error(error);
  }
}

Returns

object
additionalProperties
ProviderTokenResponse object
chainId
* integer
address
* string
symbol
* string
name
* string
decimals
* integer
logoURI
string
providers
* array
items
string
tags
* array
items
string
eip2612
boolean
isFoT
boolean
displayedSymbol
string
tradingRestricted
boolean
JSON
1
2
null

Did you find what you need?