Skip to main content
GET
/
v1
/
chains
/
{chain_id}
Get chain by ID
curl --request GET \
  --url https://api.zerion.io/v1/chains/{chain_id} \
  --header 'Authorization: Basic <encoded-value>'
{
  "links": {
    "self": "https://api.zerion.io/v1/chains/polygon"
  },
  "data": {
    "type": "chains",
    "id": "polygon",
    "attributes": {
      "name": "polygon",
      "external_id": "0x4e454152",
      "icon": {
        "url": "https://token-icons.s3.amazonaws.com/0x0391d2021f89dc339f60fff84546ea23e337750f.png"
      },
      "explorer": {
        "name": "polygonScan",
        "token_url_format": "https://explorer.mainnet.polygon.dev/token/{ADDRESS}",
        "tx_url_format": "https://explorer.mainnet.polygon.dev/tx/{HASH}",
        "home_url": "https://explorer.mainnet.polygon.dev"
      },
      "rpc": {
        "internal_server_url_format": "https://mainnet.polygon.dev/{polygon_API_KEY}",
        "public_servers_url": [
          "https://mainnet.polygon.dev"
        ]
      },
      "flags": {
        "supports_trading": true,
        "supports_sending": true,
        "supports_bridge": true
      }
    },
    "relationships": {
      "native_fungible": {
        "links": {
          "related": "https://api.zerion.io/v1/fungibles/0x2af1df3ab0ab157e1e2ad8f88a7d04fbea0c7dc6"
        },
        "data": {
          "type": "fungibles",
          "id": "0x2af1df3ab0ab157e1e2ad8f88a7d04fbea0c7dc6"
        }
      },
      "wrapped_native_fungible": {
        "links": {
          "related": "https://api.zerion.io/v1/fungibles/0x2af1df3ab0ab157e1e2ad8f88a7d04fbea0c7dc6"
        },
        "data": {
          "type": "fungibles",
          "id": "0x2af1df3ab0ab157e1e2ad8f88a7d04fbea0c7dc6"
        }
      }
    }
  }
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Headers

X-Env
enum<string>

Custom header that allows you to get data for testnets.

Available options:
testnet

Path Parameters

chain_id
string
required

Unique chain ID

Response

Response for requested chain

data
object
required