TokenListController_getTokenListByChain
GEThttps://api.socket.tech/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 [
]
success booleanrequired
Status of API.
results
object[]
required
name string
Name of token.
address stringrequired
Address of token.
icon string
URL for icon of token.
decimals number
Decimal used for token.
symbol stringrequired
Symbol of token.
chainId stringrequired
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
]
Chain id of the token
logoURI string
URL for icon of token.
chainAgnosticId string
Unique Id over all chains
{
"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"
}
]
}
Loading...