{"eip":7930,"title":"Interoperable Addresses","description":"An extensible binary format to refer to an address specific to one chain.","authors":["Teddy (@0xteddybear)","Joxes (@0xJoxess)","Nick Johnson (@Arachnid)","Francisco Giordano (@frangio)","Skeletor Spaceman (@skeletor-spaceman)","Racu (@0xRacoon)","TiTi (@0xtiti)","Gori (@0xGorilla)","Ardy (@0xArdy)","Onizuka (@onizuka-wl)","Sam Kaufman (@SampkaML)","Marco Stronati (@paracetamolo)","Yuliya Alexiev (@yuliyaalexiev)","Jeff Lau (@jefflau)","Sam Wilson (@samwilsn)","Vitalik Buterin (@vbuterin)","Thomas Clowes (@clowestab)","Mono (@0xMonoAx)","Prem Makeig (@nxt3d)","Orca (@0xrcinus)"],"status":"Review","type":"Standards Track","category":"ERC","created":"2025-02-02","discussionsTo":"https://ethereum-magicians.org/t/erc-7930-interoperable-addresses/23365","repo":"ERCs","label":"ERC-7930","officialUrl":"https://eips.ethereum.org/EIPS/eip-7930","sourceUrl":"https://github.com/ethereum/ERCs/blob/master/ERCS/erc-7930.md","url":"https://eips.huatuo.xyz/eip-7930/","tldr":{"en":"A compact, versioned binary format that packs a chain identifier and an address together, so contracts and cross-chain protocols can refer to \"this address on that chain\" unambiguously, including non-EVM chains.","ja":"チェーン識別子とアドレスをまとめて格納する、コンパクトでバージョン付きのバイナリ形式。コントラクトやクロスチェーンのプロトコルが、非 EVM チェーンも含め、「あのチェーン上のこのアドレス」を曖昧さなく参照できる。","ko":"체인 식별자와 주소를 함께 담는 간결한 버전형 바이너리 형식. 컨트랙트와 크로스체인 프로토콜이 비 EVM 체인을 포함해 \"그 체인의 이 주소\"를 모호함 없이 가리킬 수 있게 한다.","zh":"一种紧凑的、带版本的二进制格式，把链标识符和地址打包在一起，使合约和跨链协议可以明确无误地指代\"那条链上的这个地址\"，包括非 EVM 链。"},"tags":["addresses","interoperability","cross-chain","binary-format"],"explainers":{"en":{"lang":"en","tldr":"A compact, versioned binary format that packs a chain identifier and an address together, so contracts and cross-chain protocols can refer to \"this address on that chain\" unambiguously, including non-EVM chains.","tags":["addresses","interoperability","cross-chain","binary-format"],"related":[55,3770,7828],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-7930/","markdown":"## What problem does it solve?\n\nA `0x…` address ([ERC-55](/eip-55/)) looks the same on Ethereum, Arbitrum, Base and dozens of other chains, but it says nothing about *which* chain is meant. Every bridge, intent protocol and messaging system has invented its own way to pair a chain ID with an address, which fragments tooling and makes mistakes easy.\n\nText formats such as CAIP-10 exist, but strings are expensive to handle on-chain, and CAIP-2's 32-character chain reference cannot represent some chains losslessly. ERC-7930 defines one canonical **binary** \"Interoperable Address\" that works inside smart contracts and covers non-EVM chains too.\n\n## How it works\n\nAn Interoperable Address is a byte string with six parts:\n\n| Field | Size | Meaning |\n| --- | --- | --- |\n| Version | 2 bytes | `0x0001` for this spec |\n| ChainType | 2 bytes | Chain namespace (e.g. `0x0000` for EVM `eip155`) |\n| ChainReferenceLength | 1 byte | Length of the chain reference, may be 0 |\n| ChainReference | variable | Chain ID in binary (e.g. `0x01` for Ethereum mainnet) |\n| AddressLength | 1 byte | Length of the address, may be 0 |\n| Address | variable | The raw address bytes |\n\n- How each namespace serialises its chain reference and address is defined in the companion CAIP-350 profiles.\n- Address length 0 gives a **Chain Identifier** (a chain, no account). Chain reference length 0 gives an address valid \"on any compatible chain\". Both cannot be zero at once.\n- Future versions must stay convertible to version 1. Incompatible ones set the top bit of the version field.\n- For display, lowercase hex is recommended, but this is not meant to be user-facing. [ERC-7828](/eip-7828/) defines a human-readable form on top. [ERC-3770](/eip-3770/) is an older text style (`arb:0x…`).\n\nExample from the spec, Ethereum mainnet address `0xd8dA…6045`:\n\n```\n0x0001 0000 01 01 14 d8da6bf26964af9d7eed9e03e53415d37aa96045\n  ver  type len id len address (20 bytes)\n```\n\n## Sample code\n\nParsing an Interoperable Address in TypeScript (ethers v6 helpers):\n\n```ts\nimport { getBytes, hexlify } from \"ethers\";\n\nexport function parseInteropAddress(hex: string) {\n  const b = getBytes(hex);\n  const version = (b[0] \u003c\u003c 8) | b[1];\n  if (version !== 1) throw new Error(\"unsupported version\");\n  const chainType = (b[2] \u003c\u003c 8) | b[3];\n  const refLen = b[4];\n  const chainRef = b.slice(5, 5 + refLen);\n  const addrLen = b[5 + refLen];\n  const address = b.slice(6 + refLen, 6 + refLen + addrLen);\n  if (refLen === 0 \u0026\u0026 addrLen === 0) throw new Error(\"empty address\");\n  return { chainType, chainReference: hexlify(chainRef), address: hexlify(address) };\n}\n\nparseInteropAddress(\"0x00010000010114d8da6bf26964af9d7eed9e03e53415d37aa96045\");\n// { chainType: 0, chainReference: \"0x01\", address: \"0xd8da6bf2…6045\" }\n```\n\n## Things to know\n\n- **Status: Review.** The format may still change before it becomes Final.\n- The binary layout is defined here, but its meaning per chain family lives in CAIP-350 profiles maintained by the Chain Agnostic Standards Alliance. Check the profile for your namespace.\n- Canonicity is not guaranteed for every namespace. If you use these bytes as mapping keys, read the profile's notes on alternative encodings or chains with more than one identifier.\n- The chain reference is binary, so EVM chain ID `1` is the single byte `0x01`, not a padded 32-byte integer.\n"},"ja":{"lang":"ja","tldr":"チェーン識別子とアドレスをまとめて格納する、コンパクトでバージョン付きのバイナリ形式。コントラクトやクロスチェーンのプロトコルが、非 EVM チェーンも含め、「あのチェーン上のこのアドレス」を曖昧さなく参照できる。","tags":["addresses","interoperability","cross-chain","binary-format"],"related":[55,3770,7828],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-7930/","markdown":"## 何を解決するのか\n\n`0x…` のアドレス（[ERC-55](/eip-55/)）は、Ethereum、Arbitrum、Base、その他数十のチェーンで同じに見えますが、*どの*チェーンを指すのかは何も示しません。ブリッジ、インテントプロトコル、メッセージングシステムは、それぞれチェーン ID とアドレスを組み合わせる独自の方法を発明してきたため、ツールが分断され、間違いも起きやすくなっています。\n\nCAIP-10 のようなテキスト形式はありますが、文字列はオンチェーンでの扱いが高コストで、CAIP-2 の 32 文字のチェーン参照では、一部のチェーンを損失なく表現できません。ERC-7930 は、スマートコントラクト内で機能し、非 EVM チェーンもカバーする、正規の**バイナリ**形式「Interoperable Address」を 1 つ定義します。\n\n## 仕組み\n\nInteroperable Address は 6 つの部分からなるバイト列です。\n\n| フィールド | サイズ | 意味 |\n| --- | --- | --- |\n| Version | 2 バイト | この仕様では `0x0001` |\n| ChainType | 2 バイト | チェーンの名前空間（例: EVM の `eip155` は `0x0000`） |\n| ChainReferenceLength | 1 バイト | チェーン参照の長さ。0 も可 |\n| ChainReference | 可変 | バイナリのチェーン ID（例: Ethereum メインネットは `0x01`） |\n| AddressLength | 1 バイト | アドレスの長さ。0 も可 |\n| Address | 可変 | 生のアドレスのバイト列 |\n\n- 各名前空間がチェーン参照とアドレスをどうシリアライズするかは、関連する CAIP-350 のプロファイルで定義されます。\n- アドレス長が 0 なら **Chain Identifier**（チェーンのみでアカウントなし）になります。チェーン参照長が 0 なら、「互換性のあるどのチェーンでも」有効なアドレスになります。両方が同時に 0 になることはできません。\n- 将来のバージョンは、バージョン 1 に変換可能であり続けなければなりません。互換性のないものは、version フィールドの最上位ビットを立てます。\n- 表示には小文字の 16 進が推奨されますが、これはユーザー向けのものではありません。[ERC-7828](/eip-7828/) が、その上に人間が読める形式を定義しています。[ERC-3770](/eip-3770/) は、より古いテキスト形式（`arb:0x…`）です。\n\n仕様の例、Ethereum メインネットのアドレス `0xd8dA…6045`:\n\n```\n0x0001 0000 01 01 14 d8da6bf26964af9d7eed9e03e53415d37aa96045\n  ver  type len id len address (20 bytes)\n```\n\n## サンプルコード\n\nTypeScript での Interoperable Address のパース（ethers v6 のヘルパー）:\n\n```ts\nimport { getBytes, hexlify } from \"ethers\";\n\nexport function parseInteropAddress(hex: string) {\n  const b = getBytes(hex);\n  const version = (b[0] \u003c\u003c 8) | b[1];\n  if (version !== 1) throw new Error(\"unsupported version\");\n  const chainType = (b[2] \u003c\u003c 8) | b[3];\n  const refLen = b[4];\n  const chainRef = b.slice(5, 5 + refLen);\n  const addrLen = b[5 + refLen];\n  const address = b.slice(6 + refLen, 6 + refLen + addrLen);\n  if (refLen === 0 \u0026\u0026 addrLen === 0) throw new Error(\"empty address\");\n  return { chainType, chainReference: hexlify(chainRef), address: hexlify(address) };\n}\n\nparseInteropAddress(\"0x00010000010114d8da6bf26964af9d7eed9e03e53415d37aa96045\");\n// { chainType: 0, chainReference: \"0x01\", address: \"0xd8da6bf2…6045\" }\n```\n\n## 知っておくべきこと\n\n- **ステータス: Review。** Final になるまでに、形式が変更される可能性があります。\n- バイナリのレイアウトはここで定義されますが、チェーンファミリーごとの意味は、Chain Agnostic Standards Alliance が維持する CAIP-350 のプロファイルにあります。お使いの名前空間のプロファイルを確認してください。\n- すべての名前空間で正規性が保証されているわけではありません。これらのバイト列を mapping のキーとして使う場合は、代替エンコーディングや、識別子が複数あるチェーンについてのプロファイルの注記を読んでください。\n- チェーン参照はバイナリなので、EVM のチェーン ID `1` は、パディングされた 32 バイトの整数ではなく、1 バイトの `0x01` です。\n"},"ko":{"lang":"ko","tldr":"체인 식별자와 주소를 함께 담는 간결한 버전형 바이너리 형식. 컨트랙트와 크로스체인 프로토콜이 비 EVM 체인을 포함해 \"그 체인의 이 주소\"를 모호함 없이 가리킬 수 있게 한다.","tags":["addresses","interoperability","cross-chain","binary-format"],"related":[55,3770,7828],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-7930/","markdown":"## 어떤 문제를 해결하나요?\n\n`0x…` 주소([ERC-55](/eip-55/))는 이더리움, Arbitrum, Base와 수십 개의 다른 체인에서 똑같이 보이지만, *어느* 체인을 뜻하는지는 전혀 알려주지 않습니다. 브리지, 인텐트 프로토콜, 메시징 시스템마다 체인 ID와 주소를 짝짓는 자기만의 방식을 만들어 와서 도구가 파편화되고 실수하기 쉽습니다.\n\nCAIP-10 같은 텍스트 형식이 있지만 문자열은 온체인에서 다루기 비싸고, CAIP-2의 32자 체인 참조로는 일부 체인을 손실 없이 표현할 수 없습니다. ERC-7930은 스마트 컨트랙트 안에서 동작하고 비 EVM 체인도 아우르는 하나의 정규 **바이너리** \"Interoperable Address\"를 정의합니다.\n\n## 어떻게 동작하나요?\n\nInteroperable Address는 여섯 부분으로 이루어진 바이트열입니다.\n\n| 필드 | 크기 | 의미 |\n| --- | --- | --- |\n| Version | 2바이트 | 이 사양에서는 `0x0001` |\n| ChainType | 2바이트 | 체인 네임스페이스(예: EVM `eip155`는 `0x0000`) |\n| ChainReferenceLength | 1바이트 | 체인 참조의 길이, 0일 수 있음 |\n| ChainReference | 가변 | 바이너리 체인 ID(예: 이더리움 메인넷은 `0x01`) |\n| AddressLength | 1바이트 | 주소의 길이, 0일 수 있음 |\n| Address | 가변 | 원시 주소 바이트 |\n\n- 각 네임스페이스가 체인 참조와 주소를 어떻게 직렬화하는지는 짝이 되는 CAIP-350 프로필에서 정의됩니다.\n- 주소 길이가 0이면 **Chain Identifier**(체인만 있고 계정은 없음)가 됩니다. 체인 참조 길이가 0이면 \"호환되는 어떤 체인에서든\" 유효한 주소가 됩니다. 둘 다 동시에 0일 수는 없습니다.\n- 미래 버전은 버전 1로 변환 가능해야 합니다. 호환되지 않는 버전은 version 필드의 최상위 비트를 설정합니다.\n- 표시할 때는 소문자 16진수가 권장되지만, 이는 사용자에게 보여주기 위한 것이 아닙니다. [ERC-7828](/eip-7828/)이 그 위에 사람이 읽을 수 있는 형식을 정의합니다. [ERC-3770](/eip-3770/)은 더 오래된 텍스트 형식(`arb:0x…`)입니다.\n\n사양의 예시, 이더리움 메인넷 주소 `0xd8dA…6045`:\n\n```\n0x0001 0000 01 01 14 d8da6bf26964af9d7eed9e03e53415d37aa96045\n  ver  type len id len address (20 bytes)\n```\n\n## 샘플 코드\n\nTypeScript로 Interoperable Address 파싱하기(ethers v6 헬퍼):\n\n```ts\nimport { getBytes, hexlify } from \"ethers\";\n\nexport function parseInteropAddress(hex: string) {\n  const b = getBytes(hex);\n  const version = (b[0] \u003c\u003c 8) | b[1];\n  if (version !== 1) throw new Error(\"unsupported version\");\n  const chainType = (b[2] \u003c\u003c 8) | b[3];\n  const refLen = b[4];\n  const chainRef = b.slice(5, 5 + refLen);\n  const addrLen = b[5 + refLen];\n  const address = b.slice(6 + refLen, 6 + refLen + addrLen);\n  if (refLen === 0 \u0026\u0026 addrLen === 0) throw new Error(\"empty address\");\n  return { chainType, chainReference: hexlify(chainRef), address: hexlify(address) };\n}\n\nparseInteropAddress(\"0x00010000010114d8da6bf26964af9d7eed9e03e53415d37aa96045\");\n// { chainType: 0, chainReference: \"0x01\", address: \"0xd8da6bf2…6045\" }\n```\n\n## 알아둘 점\n\n- **상태: Review.** Final이 되기 전에 형식이 바뀔 수 있습니다.\n- 바이너리 레이아웃은 여기서 정의하지만, 체인 계열별 의미는 Chain Agnostic Standards Alliance가 관리하는 CAIP-350 프로필에 있습니다. 사용하는 네임스페이스의 프로필을 확인하세요.\n- 모든 네임스페이스에서 정규성이 보장되지는 않습니다. 이 바이트를 mapping 키로 쓴다면, 대체 인코딩이나 식별자가 둘 이상인 체인에 대한 프로필의 설명을 읽어 보세요.\n- 체인 참조는 바이너리이므로, EVM 체인 ID `1`은 패딩된 32바이트 정수가 아니라 1바이트 `0x01`입니다.\n"},"zh":{"lang":"zh","tldr":"一种紧凑的、带版本的二进制格式，把链标识符和地址打包在一起，使合约和跨链协议可以明确无误地指代\"那条链上的这个地址\"，包括非 EVM 链。","tags":["addresses","interoperability","cross-chain","binary-format"],"related":[55,3770,7828],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-7930/","markdown":"## 它解决什么问题？\n\n一个 `0x…` 地址（[ERC-55](/eip-55/)）在以太坊、Arbitrum、Base 和几十条其他链上看起来都一样，但它完全没有说明指的是*哪条*链。每个桥、意图协议和消息系统都发明了自己把链 ID 与地址配对的方式，这使工具碎片化，也容易出错。\n\nCAIP-10 之类的文本格式虽然存在，但字符串在链上处理成本高昂，而且 CAIP-2 的 32 字符链引用无法无损地表示某些链。ERC-7930 定义了一种统一的规范**二进制**\"Interoperable Address\"，既能在智能合约中使用，也覆盖了非 EVM 链。\n\n## 它如何运作\n\nInteroperable Address 是一个由六部分组成的字节串：\n\n| 字段 | 大小 | 含义 |\n| --- | --- | --- |\n| Version | 2 字节 | 本规范为 `0x0001` |\n| ChainType | 2 字节 | 链命名空间（例如 EVM 的 `eip155` 为 `0x0000`） |\n| ChainReferenceLength | 1 字节 | 链引用的长度，可以为 0 |\n| ChainReference | 可变 | 二进制的链 ID（例如以太坊主网为 `0x01`） |\n| AddressLength | 1 字节 | 地址的长度，可以为 0 |\n| Address | 可变 | 原始地址字节 |\n\n- 每个命名空间如何序列化其链引用和地址，由配套的 CAIP-350 配置文件定义。\n- 地址长度为 0 得到的是一个**链标识符**（只有链，没有账户）。链引用长度为 0 得到的是在\"任何兼容链上\"都有效的地址。二者不能同时为 0。\n- 未来的版本必须保持可转换为版本 1。不兼容的版本会把 version 字段的最高位置 1。\n- 展示时建议使用小写十六进制，但这并不面向用户。[ERC-7828](/eip-7828/) 在其之上定义了人类可读的形式。[ERC-3770](/eip-3770/) 是较早的文本风格（`arb:0x…`）。\n\n规范中的示例，以太坊主网地址 `0xd8dA…6045`：\n\n```\n0x0001 0000 01 01 14 d8da6bf26964af9d7eed9e03e53415d37aa96045\n  ver  type len id len address (20 bytes)\n```\n\n## 示例代码\n\n用 TypeScript 解析 Interoperable Address（ethers v6 辅助函数）：\n\n```ts\nimport { getBytes, hexlify } from \"ethers\";\n\nexport function parseInteropAddress(hex: string) {\n  const b = getBytes(hex);\n  const version = (b[0] \u003c\u003c 8) | b[1];\n  if (version !== 1) throw new Error(\"unsupported version\");\n  const chainType = (b[2] \u003c\u003c 8) | b[3];\n  const refLen = b[4];\n  const chainRef = b.slice(5, 5 + refLen);\n  const addrLen = b[5 + refLen];\n  const address = b.slice(6 + refLen, 6 + refLen + addrLen);\n  if (refLen === 0 \u0026\u0026 addrLen === 0) throw new Error(\"empty address\");\n  return { chainType, chainReference: hexlify(chainRef), address: hexlify(address) };\n}\n\nparseInteropAddress(\"0x00010000010114d8da6bf26964af9d7eed9e03e53415d37aa96045\");\n// { chainType: 0, chainReference: \"0x01\", address: \"0xd8da6bf2…6045\" }\n```\n\n## 需要注意\n\n- **状态：Review。**在成为 Final 之前，格式仍可能变化。\n- 二进制布局在此定义，但其在各链族上的含义则由 Chain Agnostic Standards Alliance 维护的 CAIP-350 配置文件规定。请查阅你所用命名空间的配置文件。\n- 并非每个命名空间都保证规范唯一性。如果你把这些字节用作 mapping 的键，请阅读配置文件中关于替代编码或拥有多个标识符的链的说明。\n- 链引用是二进制的，所以 EVM 链 ID `1` 是单个字节 `0x01`，而不是填充后的 32 字节整数。\n"}},"requiredBy":[7683,7786,7828,7965,8048,8049,8092,8121,8122,8127]}
