1inch whitelisted tokens in list format
Get 1inch whitelisted tokens in Uniswap token list format. Returns an array of token objects compatible with the Token Lists standard.
Supported on: Ethereum Base BNB Chain Unichain Robinhood Chain Arbitrum Avalanche Cronos ZKsync Gnosis HyperEVM Arc Monad Optimism Polygon Linea Sonic
Parameters
chainId
* integer pathChain ID of the network.
provider
string queryProvider code. Default value is "1inch"
country
string queryCountry code for geographic filtering
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
26
const axios = require('axios');
async function httpCall() {
const url = 'https://api.1inch.com/token/v1.7/{chainId}/token-list';
const config = {
headers: {
Authorization: `Bearer ${API_KEY}`,
},
params: {
provider: '1inch',
country: 'US',
},
paramsSerializer: {
indexes: null,
},
};
try {
const response = await axios.get(url, config);
console.log(response.data);
} catch (error) {
console.error(error);
}
}
Returns
A token list document.
keywords
array Keywords for the token list.
items
string logoURI
string URL of the token logo.
name
* string Token or list name.
tags
* object Tags attached to the token or list.
additionalProperties
TagResponse object A tag attached to a token.
provider
* string Provider that issued the tag.
value
* string Tag value.
tags_order
array Preferred order of tag keys.
items
string timestamp
* string When the token list was produced.
tokens
* array Tokens in the list.
items
TokenInfoResponse object Token metadata in the token-list shape.
address
* string Token contract address.
chainId
* number Chain ID of the network.
decimals
* number Number of decimals for token amounts.
extensions
object Extra token-list fields.
logoURI
string URL of the token logo.
name
* string Token or list name.
symbol
* string Token symbol.
tags
* array Tags attached to the token or list.
items
string version
* any Semantic version of the token list.
allOf[0]
VersionDto object Semantic version of a token list.
major
* number Major version.
minor
* number Minor version.
patch
* number Patch version.
JSON
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
26
{
"keywords": ["string"],
"logoURI": "string",
"name": "string",
"tags": null,
"tags_order": ["string"],
"timestamp": "string",
"tokens": [
{
"address": "string",
"chainId": 0,
"decimals": 0,
"extensions": null,
"logoURI": "string",
"name": "string",
"symbol": "string",
"tags": ["string"]
}
],
"version": {
"major": 0,
"minor": 0,
"patch": 0
}
}