v1

latestOpenAPI 3.0.32026-07-2639188178.2 KB
chains

Get chain by ID

This endpoint returns chain by unique chain identifier.

This endpoint supports testnets. To get data for testnets use X-Env header.

get/v1/chains/{chain_id}

Path parameters

chain_idstring required

Unique chain ID

Headers

X-Env'testnet'

Custom header that allows you to get data for testnets.

Response

Response for requested chain

Example response

{
  "links": {
    "self": "https://api.zerion.io/v1/chains/polygon"
  },
  "data": {
    "type": "chains",
    "id": "polygon",
    "attributes": {
      "external_id": "0x4e454152",
      "name": "polygon",
      "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"
        }
      }
    }
  }
}
All 39 operations