TokenListController_getfromTokenList
GEThttps://api.socket.tech/v2/token-lists/from-token-list
TokenListController_getfromTokenList
Request​
Query Parameters
Id of source chain, e.g Optimism = 10
Id of destination chain, e.g xDAI = 100
Flag to specify if tokens that need dex swap should be ignored.
Possible values: [oneinch
, zerox
, rainbow
]
Specify Dexes that should be included for token support.
Possible values: [oneinch
, zerox
, rainbow
]
Specify Dexes that should be excluded for token support. This option will be ignored if includeDexes is specified.
Possible values: [hop
, anyswap
, anyswap-router-v4
, anyswap-router-v6
, polygon-bridge
, arbitrum-bridge
, hyphen
, across
, optimism-bridge
, celer
, refuel-bridge
, stargate
, connext
, cctp
, synapse
, base-bridge
, zora-bridge
, zksync-native
, symbiosis
, gnosis-native-bridge
, mantle-native-bridge
]
Specify Bridges that should be included for token support.
Possible values: [hop
, anyswap
, anyswap-router-v4
, anyswap-router-v6
, polygon-bridge
, arbitrum-bridge
, hyphen
, across
, optimism-bridge
, celer
, refuel-bridge
, stargate
, connext
, cctp
, synapse
, base-bridge
, zora-bridge
, zksync-native
, symbiosis
, gnosis-native-bridge
, mantle-native-bridge
]
Specify Bridges that should be excluded for token support. This option will be ignored if includeBridges is specified.
To be Marked true if you want the token list that needs only a single transaction from the user to bridge.
To be Marked true if you want the shorter and more efficient token list.
Header Parameters
Responses​
- 200
All Supported token by a given chainId
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Status of API.
results
object[]
required
Name of token.
Address of token.
URL for icon of token.
Decimal used for token.
Symbol of 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
]
Chain id of the token
URL for icon of token.
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"
}
]
}