Search
K

/from-token-list

/v2/token-lists/from-token-list

How this endpoint is to be used :
  • This endpoint returns a list of tokens supported for bridging from the sending side of the bridge
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.
get
https://api.socket.tech
/v2/token-lists/from-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 /to-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
icon and tokenURI are the same. We suggest using tokenURI. icon was used in previous versions of Socket APIs and has been continued for backward compatibility but might deprecate in future releases.
TEST QUERY :