---
title: "Get chain by ID"
method: GET
path: "/v1/chains/{chain_id}"
tags: ["chains"]
---

# Get chain by ID

`GET /v1/chains/{chain_id}`

This endpoint returns chain by unique chain identifier.

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

## Path parameters

- `chain_id` string, required

## Headers

- `X-Env` 'testnet'

## Response `200`

Response for requested chain

- ChainResponse
  - `links` ResponseLinks15, required
    - `self` string, url, required — URL of the current chain.
  - `data` Container14, required
    - `type` string, required — Chain resource type
    - `id` string, required — Chain unique identifier
    - `attributes` Attributes12 — Attributes of chain resource
      - `external_id` string — Community used chain ID
      - `name` string, required — Human readable chain name
      - `icon` Icon — Icon related to object.
        - `url` string, url, nullable — URL of the icon.
      - `explorer` Explorer — Chain explorer data
        - `name` string, required — Human readable explorer name
        - `token_url_format` string, url — URL with placeholders that leads to a token page
        - `tx_url_format` string, url — URL with placeholders that points to a transaction page
        - `home_url` string, url — URL leads to the explorer homepage
      - `rpc` RPC — Chain RPC servers data
        - `internal_server_url_format` string, url — URL with placeholders of RPC server which can be used for project purposes
        - `public_servers_url` string[] — List of URL of public RPC servers which can be used by everyone
      - `flags` Flags5 — Various chain related boolean flags
        - `supports_trading` boolean, required — Whether trading is supported on Zerion for this chain or not
        - `supports_sending` boolean, required — Whether sending is supported on Zerion for this chain or not
        - `supports_bridge` boolean, required — Whether bridges are supported on Zerion for this chain or not
    - `relationships` Relationships7
      - `native_fungible` ResponseShort, required
        - `links` ResponseLinks12, required
          - `related` string, url
        - `data` ContainerShort5, required
          - `type` string, required — Fungible resource type
          - `id` string, required — Fungible unique identifier
      - `wrapped_native_fungible` ResponseShort
        - `links` ResponseLinks12, required
          - `related` string, url
        - `data` ContainerShort5, required
          - `type` string, required — Fungible resource type
          - `id` string, required — Fungible unique identifier

## Other responses

- `400` — Parameters are malformed
- `401` — Unathenticated request
- `404` — Resource was not found
- `429` — Too many requests error

---

[API](https://skmtc.dev/zerion/apis/rest-api.md) · [All operations](https://skmtc.dev/zerion/apis/rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/zerion/rest-api/revisions/2ef116ef914f/schema)
