Search…
To Token List

/v2/token-lists/to-token-list

How this endpoint is to be used :
  • This endpoint returns a list of tokens supported for receiving on the destination side
Note : This endpoint is to be called once a user chooses sending chain and destination chain. Hence,fromChainId and toChainId are known and need to be passed as a param based on a user's selection.
IMPORTANT : Setting disableSwapping param to true in /v2/token-lists/to-token-list also requires the param to be set to true in /token-lists/to-token-list and v2/quote
get
https://api.socket.tech
/v2/token-lists/to-token-list
Returns list of supported tokens to send from Chain A to Chain B
IMPORTANT : The values set for disableSwapping, includeDexes, includeBridges, excludeBridge, singleTxOnly flags need to be same for /from-token-list and /quote.
API-KEY needs to be passed in the headers while making the GET request

Description of response parameters

Parameter
Description
success
Indicates successful response from endpoint, as intended.
name
Name of token
address
Contract address of token
chainId
ID of chain, for e.g : Ethereum = 1
decimals
Decimals for amount supported by a given token
symbol
Symbol of token
icon (to be deprecated, use tokenURI)
URL to icon of token
tokenURI
URL to icon of token
chainAgnosticId
Token identifier across chains
​
TEST QUERY :