TokenListController_getTokenListByChain
GET/v2/token-lists/chain
TokenListController_getTokenListByChain
Request
Query Parameters
chainId stringrequired
Id of chain, e.g Optimism = 10
Example: 10
isShortList boolean
Only gives a short important list instead of all tokens
Example: 10
Header Parameters
API-KEY string
Responses
- 200
All Supported token by a given route
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
successbooleanrequired
Status of API.
Example:
trueresults
object[]
required
namestring
Name of token.
Example:
USD Coinaddressstringrequired
Address of token.
Example:
0x2791bca1f2de4661ed88a30c99a7a9449aa84174iconstring
URL for icon of token.
Example:
https://maticnetwork.github.io/polygon-token-assets/assets/usdc.svgdecimalsnumber
Decimal used for token.
Example:
6symbolstringrequired
Symbol of token.
Example:
USDCchainIdstringrequired
Chain id of the token
Possible values: [MAINNET_CHAIN_ID, OPTIMISM_CHAIN_ID, BSC_CHAIN_ID, XDAI_CHAIN_ID, POLYGON_CHAIN_ID, FANTOM_CHAIN_ID, ZKSYNC_ERA_CHAIN_ID, POLYGON_ZKEVM_CHAIN_ID, MANTLE_CHAIN_ID, BASE_CHAIN_ID, MODE_CHAIN_ID, ARBITRUM_CHAIN_ID, AVAX_CHAIN_ID, LINEA_CHAIN_ID, BLAST_CHAIN_ID, SCROLL_CHAIN_ID, ZORA_CHAIN_ID, AURORA_CHAIN_ID]
Example:
137logoURIstring
URL for icon of token.
Example:
https://maticnetwork.github.io/polygon-token-assets/assets/usdc.svgchainAgnosticIdstring
Unique Id over all chains
Example:
DAI{
"success": true,
"results": [
{
"name": "USD Coin",
"address": "0x2791bca1f2de4661ed88a30c99a7a9449aa84174",
"icon": "https://maticnetwork.github.io/polygon-token-assets/assets/usdc.svg",
"decimals": 6,
"symbol": "USDC",
"chainId": 137,
"logoURI": "https://maticnetwork.github.io/polygon-token-assets/assets/usdc.svg",
"chainAgnosticId": "DAI"
}
]
}