Token Support

Returns if a given token is supported by Socket

v2/supported/token-support

How this endpoint is to be used :

  • If a user imports a token that wasn't in Socket's token list, this endpoint can be used to check if that token is supported by Socket

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

Returns if a given token is supported by Socket

GET https://api.socket.tech/v2/supported/token-support

Query Parameters

NameTypeDescription

chainId*

string

ID of chain where token exists

address*

string

Token address


Download
{
  "success": true,
  "result": {
    "isSupported": true,
    "token": {
      "chainId": 10,
      "address": "string",
      "symbol": "string",
      "name": "stringn",
      "decimals": 6,
      "icon": "string",
      "logoURI": "string"
    }
  }
}

Description of response parameters :

ParameterValue

success

Indicates successful response from endpoint, as intended.

isSupported

Boolean value indicating if given token is supported by Socket

token

Object with metadata of token

chainId

ID of chain, for e.g : Ethereum = 1

address

Contract address of token

symbol

Symbol of token

name

Name of token

decimals

Decimals for amount supported by a given token

icon (Will be deprecated, use logoURI)

URL to icon of token

logoURI

URL to icon of token

Test your query on the Socket Swagger interface : https://api.socket.tech/v2/swagger/#/Supported/SupportedController_getIfTokenIsSupported

Last updated