chains

Get list of all chains

Changed on

Returns every chain Zerion supports, with the chain IDs that all other endpoints use. Use it to populate chain selectors or to check a chain ID before calling other endpoints.

Each chain's flags report per-capability support: whether trading, sending, bridging, transaction history, positions and NFT positions are available on that chain.

See also: Testnets (X-Env: testnet)

get/v1/chains/

Request

  • Base URL
    https://api.zerion.io
  • URL
    https://api.zerion.io/v1/chains/
  • Auth
    HTTP basic

Headers

X-Env'testnet'

Set to testnet to return testnet data instead of mainnet.

Response

Response for requested list of chains

Example response

{
  "links": {
    "self": "https://api.zerion.io/v1/chains/"
  },
  "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,
          "supports_transactions": true,
          "supports_positions": true,
          "supports_nft_positions": 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"
          }
        }
      }
    }
  ]
}

Changes

    • info

      added the required property //// to the response with the status

    • info

      added the required property //// to the response with the status

    • info

      added the required property //// to the response with the status