{
  "id": "caip2_chain_id",
  "kind": "datatype",
  "status": "draft",
  "name": "Blockchain ID (CAIP-2)",
  "doc": "Chain-agnostic identifier of a blockchain defined by CAIP-2: a namespace of 3 to 8 lower-case letters, digits or hyphens that names an ecosystem (eip155 for EVM chains, bip122 for Bitcoin-like chains, cosmos, solana and others), a colon and a reference of up to 32 characters that identifies the chain within it, such as the EIP-155 chain ID or the start of the genesis block hash.",
  "is_pii": false,
  "categories": [
    "cryptocurrency",
    "identifiers"
  ],
  "langs": [
    "common"
  ],
  "classification": "identifier",
  "regexp": "^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$",
  "examples": [
    {
      "value": "eip155:1",
      "description": "Ethereum mainnet",
      "valid": true
    },
    {
      "value": "bip122:000000000019d6689c085ae165831e93",
      "description": "Bitcoin mainnet",
      "valid": true
    },
    {
      "value": "cosmos:cosmoshub-3",
      "description": "Cosmos Hub",
      "valid": true
    },
    {
      "value": "eip155:1:0xab16a96D359eC26a11e2C2b3d8f8B8942d5Bfcdb",
      "description": "account ID (caip10_account_id)",
      "valid": false
    }
  ],
  "links": [
    {
      "type": "doc",
      "url": "https://chainagnostic.org/CAIPs/caip-2"
    }
  ],
  "translations": {
    "ru": {
      "name": "Идентификатор блокчейна (CAIP-2)"
    }
  },
  "quality": {
    "score": 80,
    "missing": [
      "mapping (Wikidata, Schema.org, ...)",
      "detector coverage"
    ]
  },
  "source": {
    "path": "data/datatypes/any/cryptocurrency/caip2_chain_id.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/any/cryptocurrency/caip2_chain_id.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/cryptocurrency/caip2_chain_id.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/caip2_chain_id",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/caip2_chain_id.json"
  }
}