---
id: "caip2_chain_id"
kind: "datatype"
status: "draft"
is_pii: false
categories: ["cryptocurrency", "identifiers"]
langs: ["common"]
quality: 80
url: "http://registry.apicrafter.io/datatype/caip2_chain_id"
---

# Blockchain ID (CAIP-2) (`caip2_chain_id`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

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.

- Personal data (PII): no
- Categories: Cryptocurrency (cryptocurrency), Universal unique identifiers (identifiers)
- Countries: global
- Languages: Common to most languages (common)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}$
```

## Examples

- `eip155:1` — Ethereum mainnet
- `bip122:000000000019d6689c085ae165831e93` — Bitcoin mainnet
- `cosmos:cosmoshub-3` — Cosmos Hub
- `eip155:1:0xab16a96D359eC26a11e2C2b3d8f8B8942d5Bfcdb` (invalid example) — account ID (caip10_account_id)

## Translations

- ru: Идентификатор блокчейна (CAIP-2)

## Sources

- doc: <https://chainagnostic.org/CAIPs/caip-2>

## Quality

Score 80/100. Missing: mapping (Wikidata, Schema.org, ...), detector coverage.

JSON: <http://registry.apicrafter.io/api/v1/datatypes/caip2_chain_id.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/cryptocurrency/caip2_chain_id.yaml>
