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.
Supported on: Ethereum Base Solana BNB Chain Robinhood Chain Arbitrum Avalanche ZKsync Gnosis Optimism Polygon Linea Sonic Unichain
Parameters
chainId
* integer (Enum)pathChain ID, as in EIP-155. The allowed values are the chains this API version supports, plus 1337 for HyperCore, where the "Hyperliquid Perps" provider lists perpetual markets.
provider
string queryToken list to read. 1inch, the default, is the whitelisted list. Any other provider name returns that provider's list, and an unknown name returns an empty result. "Hyperliquid Perps" lists the Hyperliquid perpetual markets on chain 1337.
country
string queryCaller location as an upper-case ISO 3166-1 alpha-2 code, optionally with an ISO 3166-2 subdivision (CA-ON). Tokens that cannot be traded from that location are removed or flagged with tradingRestricted. When omitted, the location comes from the request.
Request Body
This request doesn’t have any request body.
JavaScript
Copy
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
additionalProperties
ProviderTokenResponse object A token as a token-list provider lists it on one chain.
chainId
* integer Chain ID of the chain the token lives on.
address
* string Token contract address, lower-case for EVM chains.
symbol
* string Ticker symbol.
name
* string Token name.
decimals
* integer Number of decimals in on-chain amounts.
logoURI
string Logo image URL, or null when 1inch has no logo.
providers
* array Token-list providers that list this token.
items
string tags
* array Tags such as tokens, native, PEG:USD or crosschain. Tag keys are described in the tags of the token-list endpoints.
items
string eip2612
boolean Whether the token supports EIP-2612 permit, so an approval can be signed instead of sent.
isFoT
boolean Whether the token takes a fee on transfer.
displayedSymbol
string Symbol to show instead of symbol, when 1inch overrides it to tell tokens apart.
tradingRestricted
boolean Present and true when the token cannot be traded from the caller's location.
JSON
Copy
1
2
null