Chains

Returns list of chains supported by Socket APIs

/v2/supported/chains

How this endpoint is to be used :

  • List of sending chain options and destination chain options is to be populated using this endpoint. For reference, check out the Bungee App

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

Returns list of chains supported

GET https://api.socket.tech/v2/supported/chains

{
  "success": true,
  "result": [
    {
      "chainId": 137,
      "name": "string",
      "icon": "string",
      "isL1": false,
      "sendingEnabled": true,
      "receivingEnabled": true,
      "currency": {
        "address": "string",
        "icon": "string",
        "name": "string",
        "symbol": "string",
        "decimals": 18,
        "minNativeCurrencyForGas": "string"
      },
      "rpcs": [
        "string"
      ],
      "explorers": [
        "string"
      ]
    }
  ]
}

Note : If sendingEnabled parameter is false,the chain isn't supported on the sending side. Hence, it needs to be excluded as an option on the Sending Chain selection list.

Note : If receivingEnabled parameter is false,the chain isn't supported on the receiving side. Hence, it needs to be excluded as an option on the Receiving/Destination Chain selection list.

Description of response parameters

ParameterDescription

success

Indicates successful response from endpoint, as intended.

chainId

ID of chain, for example Optimism = 10

name

Name of chain

isL1

Identifies if chain is a layer 1 chain. false for layer 2 chains (Optimism, BSC, xDAI, Polygon, Fantom, Arbitrum) and true for base layer (Ethereum)

sendingEnabled

Determines if this chain is supported on the sending side. If true it can be shown as an option on sending chain selection list.

icon

URL to icon/logo of chain

receivingEnabled

Determines if this chain is supported on the receiving end. If true it can be shown as an option on receiving/destination chain selection list.

refuel.sendingEnabled

Determines if Refuel feature is supported with given chain on source side

refuel.receivingEnabled

Determines if Refuel feature is supported with given chain on destination side

currency

Object with metadata of native token of chain

currency.address

Address of native token OR gasPayingAsset, which default is 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee

currency.icon

URL of native token icon

currency.name

Name of native token

currency.symbol

Symbol of native token

currency.decimals

Decimal places for amount supported by token

currency.minNativeCurrencyForGas

Minimum amount of native token needed on the chain to execute a Socket transaction

rpcs

Array of RPC endpoints to connect with

explorers

Array of block explorers URLs supporting a given chain

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

Last updated