/chain

Returns all the tokens supported by Socket on specified chain

/v2/token-lists/chain

How this endpoint is to be used :

  • Returns all the tokens supported by Socket on specified chain

  • Depending on Single/Multi Tx bridging, routes may not be available for some tokens if specified chainId is the destination chain

Returns list of all supported tokens on specified chain

GET https://api.socket.tech/v2/token-lists/chain

Query Parameters

NameTypeDescription

chainId*

string

ID of chain, e.g : Ethereum = 1

isShortList

boolean

Returns a shorter token list with most bridged tokens

{
   "success":true,
   "result":[
         {
            "chainId":1,
            "address":"string",
            "name":"string",
            "symbol":"string",
            "decimals":1,
            "logoURI":"string"
         }
      ]
}

API-KEY needs to be passed in the headers while making the GET request

Description of response parameters

ParameterDescription

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

logoURI

URL to icon of token

TEST QUERY :

https://api.socket.tech/v2/swagger/#/Token%20Lists/TokenListController_getTokenListByChain

Last updated