{"eip":6735,"title":"L2 Aliasing of EVM-based Addresses","description":"Identify and translate EVM-based addresses from different Layer 1, Layer 2, or Sidechains","authors":["Kelvin Fichter (@smartcontracts)","Andreas Freund (@Therecanbeonlyone1969)"],"status":"Review","type":"Standards Track","category":"ERC","created":"2022-03-20","requires":[55],"discussionsTo":"https://ethereum-magicians.org/t/l2-aliasing-of-evm-based-addresses-from-the-eea-oasis-community-projects-l2-standards-working-group/13093","repo":"ERCs","label":"ERC-6735","officialUrl":"https://eips.ethereum.org/EIPS/eip-6735","sourceUrl":"https://github.com/ethereum/ERCs/blob/master/ERCS/erc-6735.md","url":"https://eips.huatuo.xyz/eip-6735/","tldr":{"en":"Proposes a deterministic way to write an asset or account address together with the chain path it came through, by wrapping it in per-chain offsets, so L1s, L2s and sidechains can identify each other's addresses.","ja":"資産やアカウントのアドレスを、チェーンごとのオフセットで包むことで、経由したチェーン経路とともに決定的に表記する方法を提案する。L1・L2・サイドチェーンが互いのアドレスを識別できるようになる。","ko":"자산이나 계정 주소를 체인별 오프셋으로 감싸, 거쳐 온 체인 경로와 함께 결정적으로 표기하는 방법을 제안한다. L1, L2, 사이드체인이 서로의 주소를 식별할 수 있게 된다.","zh":"提出一种确定性的方式，通过为每条链加上偏移量包裹，把资产或账户地址连同其经过的链路径一并写出，使 L1、L2 和侧链能够相互识别对方的地址。"},"tags":["l2","interoperability","addresses","bridging","cross-chain"],"explainers":{"en":{"lang":"en","tldr":"Proposes a deterministic way to write an asset or account address together with the chain path it came through, by wrapping it in per-chain offsets, so L1s, L2s and sidechains can identify each other's addresses.","tags":["l2","interoperability","addresses","bridging","cross-chain"],"related":[55,3770,7930],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-6735/","markdown":"## What problem does it solve?\n\nThe same address can mean different things on different EVM chains, and a bridged token on an L2 usually lives at a different address from the original on L1. When a message travels from one chain to another, the receiver needs to know unambiguously *which* asset or account on *which* origin chain it refers to, and ideally which chains it passed through.\n\nRollups already do a form of this. Messages from L1 contracts arrive on some L2s with the sender address offset by `0x1111000000000000000000000000000000001111`, so an L1 contract cannot impersonate an L2 account. ERC-6735, written by an EEA/OASIS L2 working group, generalises the idea into a single \"root to leaf\" naming rule for any EVM-based L1, L2, L3 or sidechain.\n\n## How it works\n\nThe idea is to bracket an address with an **offset alias** for each chain it lives on:\n\n```text\naddressAlias = offsetAlias(chain) relativeAddress offsetAlias(chain)\n```\n\n- The `offsetAlias` of a chain is built from its non-zero `chainId`, padded with zeros to a fixed width.\n- **Ethereum Mainnet** has a special offset, `0x1111…1111`, matching the convention existing L2s already use.\n- The `relativeAddress` is either the original address on the origin chain, or an already-aliased address from another chain, so aliases **nest**.\n- Offsets must be ordered from the root chain outwards. An asset that went from chain A to B to C is written as:\n\n```text\nchainId(C) chainId(B) chainId(A) relativeAddress chainId(A) chainId(B) chainId(C)\n```\n\nReading the alias from the inside out gives the asset's origin address and the chain path it took.\n\nThe spec also sets out conformance levels (Level 1 to 3) for implementations that claim to follow it.\n\n## Sample code\n\nAn illustrative TypeScript helper following the bracket-and-nest structure. The spec's exact padding and encoding rules are ambiguous (see below), so treat the encoding here as an assumption, not the normative format:\n\n```ts\nconst MAINNET_OFFSET = \"1111\" + \"0\".repeat(32) + \"1111\"; // per the spec, Ethereum L1\n\n// Assumed encoding: chain id written as a 16-digit, zero-padded string\nfunction offsetFor(chainId: bigint): string {\n  if (chainId === 0n) throw new Error(\"chainId must not be zero\");\n  return chainId.toString().padStart(16, \"0\");\n}\n\n// path = chains the asset passed through after L1, in order\nfunction addressAlias(l1Address: string, path: bigint[]): string {\n  let inner = MAINNET_OFFSET + l1Address.slice(2) + MAINNET_OFFSET;\n  for (const id of path) {\n    const o = offsetFor(id);\n    inner = o + inner + o;\n  }\n  return \"0x\" + inner;\n}\n\n// Token from Ethereum L1, bridged to chain 137\nconsole.log(addressAlias(\"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48\", [137n]));\n```\n\n## Things to know\n\n- **Status: Review.** It is not final. Production rollups use their own aliasing schemes; Arbitrum and Optimism, for example, add the `0x1111…1111` offset to the address arithmetically, which is a different thing from concatenating it.\n- The spec's own examples are hard to reconcile. It says chain ids are 8 bytes but pads them to 16 decimal digits, and the Mainnet offset does not follow the generic pattern. Verify against the current text before implementing.\n- Validate any address inside an alias. The spec recommends checking the [ERC-55](/eip-55/) checksum, checking that a supposed EOA has no code, and checking that a supposed token contract has the expected code hash.\n- For human-readable chain-qualified addresses, see [ERC-3770](/eip-3770/) and [ERC-7930](/eip-7930/) (both not yet final).\n"},"ja":{"lang":"ja","tldr":"資産やアカウントのアドレスを、チェーンごとのオフセットで包むことで、経由したチェーン経路とともに決定的に表記する方法を提案する。L1・L2・サイドチェーンが互いのアドレスを識別できるようになる。","tags":["l2","interoperability","addresses","bridging","cross-chain"],"related":[55,3770,7930],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-6735/","markdown":"## 何を解決するのか\n\n同じアドレスでも EVM チェーンが違えば意味が変わりえますし、L2 上のブリッジ済みトークンは通常、L1 の元のトークンとは別のアドレスに存在します。メッセージがあるチェーンから別のチェーンへ渡るとき、受信側は、それが*どの*起点チェーン上の*どの*資産やアカウントを指すのか、そして可能ならどのチェーンを経由したのかを、曖昧さなく知る必要があります。\n\nロールアップはすでにこの種の仕組みを持っています。L1 コントラクトからのメッセージは、一部の L2 では送信者アドレスに `0x1111000000000000000000000000000000001111` がオフセットとして加えられて届くため、L1 コントラクトが L2 アカウントになりすますことはできません。EEA/OASIS の L2 ワーキンググループが書いた ERC-6735 は、この考え方を、あらゆる EVM ベースの L1・L2・L3・サイドチェーンに使える「ルートからリーフへ」の単一の命名規則に一般化します。\n\n## 仕組み\n\n考え方は、アドレスが存在するチェーンごとに**オフセットエイリアス**でアドレスを挟み込むことです。\n\n```text\naddressAlias = offsetAlias(chain) relativeAddress offsetAlias(chain)\n```\n\n- チェーンの `offsetAlias` は、ゼロでない `chainId` から作られ、固定幅になるようゼロで埋められます。\n- **Ethereum メインネット**には特別なオフセット `0x1111…1111` があり、既存の L2 がすでに使っている慣習に合わせています。\n- `relativeAddress` は、起点チェーン上の元のアドレスか、別のチェーンですでにエイリアス化されたアドレスのどちらかです。そのためエイリアスは**入れ子**になります。\n- オフセットはルートチェーンから外側へ向かって並べる必要があります。チェーン A から B、C へ渡った資産は次のように書きます。\n\n```text\nchainId(C) chainId(B) chainId(A) relativeAddress chainId(A) chainId(B) chainId(C)\n```\n\nエイリアスを内側から外側へ読むと、資産の起点アドレスと、それが通ったチェーン経路が分かります。\n\nこの仕様は、準拠を主張する実装向けの適合レベル（Level 1 から 3）も定めています。\n\n## サンプルコード\n\n入れ子で挟み込む構造に沿った、説明用の TypeScript ヘルパーです。仕様のパディングとエンコーディングの規則は曖昧なため（下記参照）、ここでのエンコーディングは仮定であり、規範となる形式ではありません。\n\n```ts\nconst MAINNET_OFFSET = \"1111\" + \"0\".repeat(32) + \"1111\"; // per the spec, Ethereum L1\n\n// Assumed encoding: chain id written as a 16-digit, zero-padded string\nfunction offsetFor(chainId: bigint): string {\n  if (chainId === 0n) throw new Error(\"chainId must not be zero\");\n  return chainId.toString().padStart(16, \"0\");\n}\n\n// path = chains the asset passed through after L1, in order\nfunction addressAlias(l1Address: string, path: bigint[]): string {\n  let inner = MAINNET_OFFSET + l1Address.slice(2) + MAINNET_OFFSET;\n  for (const id of path) {\n    const o = offsetFor(id);\n    inner = o + inner + o;\n  }\n  return \"0x\" + inner;\n}\n\n// Token from Ethereum L1, bridged to chain 137\nconsole.log(addressAlias(\"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48\", [137n]));\n```\n\n## 知っておくべきこと\n\n- **ステータス: Review。** 最終版ではありません。本番のロールアップは独自のエイリアス方式を使っています。たとえば Arbitrum や Optimism はアドレスに `0x1111…1111` のオフセットを算術的に加算しており、これは連結とは別のものです。\n- 仕様自身の例は整合させにくいものです。チェーン ID は 8 バイトとされているのに 10 進 16 桁にパディングされ、Mainnet のオフセットも一般的なパターンに従っていません。実装前に最新のテキストで確認してください。\n- エイリアス内のアドレスは必ず検証してください。仕様は、[ERC-55](/eip-55/) チェックサムの確認、EOA とされるアドレスにコードがないことの確認、トークンコントラクトとされるアドレスが想定したコードハッシュを持つことの確認を推奨しています。\n- 人間が読めるチェーン付きアドレスについては、[ERC-3770](/eip-3770/) と [ERC-7930](/eip-7930/)（どちらもまだ最終版ではありません）を参照してください。\n"},"ko":{"lang":"ko","tldr":"자산이나 계정 주소를 체인별 오프셋으로 감싸, 거쳐 온 체인 경로와 함께 결정적으로 표기하는 방법을 제안한다. L1, L2, 사이드체인이 서로의 주소를 식별할 수 있게 된다.","tags":["l2","interoperability","addresses","bridging","cross-chain"],"related":[55,3770,7930],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-6735/","markdown":"## 어떤 문제를 해결하나요?\n\n같은 주소라도 EVM 체인마다 다른 의미일 수 있고, L2에 브리지된 토큰은 보통 L1의 원본 토큰과 다른 주소에 존재합니다. 메시지가 한 체인에서 다른 체인으로 전달될 때, 수신 측은 그것이 *어느* 출발 체인의 *어떤* 자산이나 계정을 가리키는지, 가능하다면 어떤 체인을 거쳐 왔는지를 모호함 없이 알아야 합니다.\n\n롤업은 이미 이와 비슷한 방식을 사용하고 있습니다. L1 컨트랙트에서 보낸 메시지는 일부 L2에 도착할 때 발신자 주소에 `0x1111000000000000000000000000000000001111` 오프셋이 더해지므로, L1 컨트랙트가 L2 계정을 사칭할 수 없습니다. EEA/OASIS L2 워킹 그룹이 작성한 ERC-6735는 이 아이디어를 모든 EVM 기반 L1, L2, L3, 사이드체인에 적용할 수 있는 하나의 \"루트에서 리프로\" 명명 규칙으로 일반화합니다.\n\n## 어떻게 동작하나요?\n\n핵심 아이디어는 주소가 존재하는 체인마다 **오프셋 별칭(offset alias)**으로 주소를 감싸는 것입니다.\n\n```text\naddressAlias = offsetAlias(chain) relativeAddress offsetAlias(chain)\n```\n\n- 체인의 `offsetAlias`는 0이 아닌 `chainId`로 만들며, 고정 폭이 되도록 0으로 채웁니다.\n- **이더리움 메인넷**에는 특별한 오프셋 `0x1111…1111`이 있으며, 기존 L2가 이미 사용하는 관례와 일치합니다.\n- `relativeAddress`는 출발 체인의 원래 주소이거나 다른 체인에서 이미 별칭이 붙은 주소입니다. 따라서 별칭은 **중첩**됩니다.\n- 오프셋은 루트 체인에서 바깥쪽으로 순서대로 배치해야 합니다. 체인 A에서 B, C로 이동한 자산은 다음과 같이 씁니다.\n\n```text\nchainId(C) chainId(B) chainId(A) relativeAddress chainId(A) chainId(B) chainId(C)\n```\n\n별칭을 안쪽에서 바깥쪽으로 읽으면 자산의 출발 주소와 거쳐 온 체인 경로를 알 수 있습니다.\n\n이 명세는 준수를 주장하는 구현을 위한 적합성 수준(Level 1~3)도 정의합니다.\n\n## 샘플 코드\n\n감싸고 중첩하는 구조를 따르는 설명용 TypeScript 헬퍼입니다. 명세의 정확한 패딩 및 인코딩 규칙은 모호하므로(아래 참고), 여기의 인코딩은 가정일 뿐 규범적인 형식이 아닙니다.\n\n```ts\nconst MAINNET_OFFSET = \"1111\" + \"0\".repeat(32) + \"1111\"; // per the spec, Ethereum L1\n\n// Assumed encoding: chain id written as a 16-digit, zero-padded string\nfunction offsetFor(chainId: bigint): string {\n  if (chainId === 0n) throw new Error(\"chainId must not be zero\");\n  return chainId.toString().padStart(16, \"0\");\n}\n\n// path = chains the asset passed through after L1, in order\nfunction addressAlias(l1Address: string, path: bigint[]): string {\n  let inner = MAINNET_OFFSET + l1Address.slice(2) + MAINNET_OFFSET;\n  for (const id of path) {\n    const o = offsetFor(id);\n    inner = o + inner + o;\n  }\n  return \"0x\" + inner;\n}\n\n// Token from Ethereum L1, bridged to chain 137\nconsole.log(addressAlias(\"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48\", [137n]));\n```\n\n## 알아둘 점\n\n- **상태: Review.** 최종 확정이 아닙니다. 실제 운영 중인 롤업은 자체 별칭 방식을 사용합니다. 예를 들어 Arbitrum과 Optimism은 주소에 `0x1111…1111` 오프셋을 산술적으로 더하는데, 이는 이어 붙이는 것과는 다릅니다.\n- 명세의 예시들은 서로 맞추기 어렵습니다. 체인 ID가 8바이트라고 하면서 10진수 16자리로 패딩하고, 메인넷 오프셋도 일반 패턴을 따르지 않습니다. 구현하기 전에 최신 문서와 대조해 확인하세요.\n- 별칭 안의 모든 주소를 검증하세요. 명세는 [ERC-55](/eip-55/) 체크섬 확인, EOA라고 주장하는 주소에 코드가 없는지 확인, 토큰 컨트랙트라고 주장하는 주소가 예상한 코드 해시를 갖는지 확인하기를 권장합니다.\n- 사람이 읽을 수 있는 체인 지정 주소는 [ERC-3770](/eip-3770/)과 [ERC-7930](/eip-7930/)을 참고하세요(둘 다 아직 최종 확정이 아닙니다).\n"},"zh":{"lang":"zh","tldr":"提出一种确定性的方式，通过为每条链加上偏移量包裹，把资产或账户地址连同其经过的链路径一并写出，使 L1、L2 和侧链能够相互识别对方的地址。","tags":["l2","interoperability","addresses","bridging","cross-chain"],"related":[55,3770,7930],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-6735/","markdown":"## 它解决什么问题？\n\n同一个地址在不同的 EVM 链上可能含义不同，L2 上的跨链桥接代币通常也与 L1 上的原始代币位于不同地址。当消息从一条链传到另一条链时，接收方需要明确知道它指的是*哪条*源链上的*哪个*资产或账户，最好还能知道它经过了哪些链。\n\nRollup 已经在做类似的事情。来自 L1 合约的消息到达某些 L2 时，发送者地址会加上偏移量 `0x1111000000000000000000000000000000001111`，因此 L1 合约无法冒充 L2 账户。ERC-6735 由 EEA/OASIS L2 工作组撰写，把这一思路推广为适用于任何基于 EVM 的 L1、L2、L3 或侧链的统一\"从根到叶\"命名规则。\n\n## 它如何运作\n\n思路是为地址所处的每条链，各用一个**偏移别名**把地址包起来：\n\n```text\naddressAlias = offsetAlias(chain) relativeAddress offsetAlias(chain)\n```\n\n- 链的 `offsetAlias` 由其非零的 `chainId` 构成，并用零填充到固定宽度。\n- **以太坊主网**有一个特殊的偏移量 `0x1111…1111`，与现有 L2 已在使用的惯例一致。\n- `relativeAddress` 要么是源链上的原始地址，要么是来自另一条链的已加别名的地址，因此别名可以**嵌套**。\n- 偏移量必须从根链向外排列。一个资产从链 A 到 B 再到 C，写作：\n\n```text\nchainId(C) chainId(B) chainId(A) relativeAddress chainId(A) chainId(B) chainId(C)\n```\n\n从内向外读取别名，就能得到资产的源地址以及它经过的链路径。\n\n该规范还为声称遵循它的实现定义了合规等级（Level 1 到 3）。\n\n## 示例代码\n\n一个遵循\"包裹并嵌套\"结构的 TypeScript 示意辅助函数。规范中确切的填充和编码规则含糊不清（见下文），因此这里的编码只是一种假设，并非规范格式：\n\n```ts\nconst MAINNET_OFFSET = \"1111\" + \"0\".repeat(32) + \"1111\"; // per the spec, Ethereum L1\n\n// Assumed encoding: chain id written as a 16-digit, zero-padded string\nfunction offsetFor(chainId: bigint): string {\n  if (chainId === 0n) throw new Error(\"chainId must not be zero\");\n  return chainId.toString().padStart(16, \"0\");\n}\n\n// path = chains the asset passed through after L1, in order\nfunction addressAlias(l1Address: string, path: bigint[]): string {\n  let inner = MAINNET_OFFSET + l1Address.slice(2) + MAINNET_OFFSET;\n  for (const id of path) {\n    const o = offsetFor(id);\n    inner = o + inner + o;\n  }\n  return \"0x\" + inner;\n}\n\n// Token from Ethereum L1, bridged to chain 137\nconsole.log(addressAlias(\"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48\", [137n]));\n```\n\n## 需要注意\n\n- **状态：Review。** 尚未最终确定。生产环境中的 Rollup 使用各自的别名方案；例如 Arbitrum 和 Optimism 是把 `0x1111…1111` 偏移量算术地加到地址上，这与拼接是两回事。\n- 规范自身的示例很难自洽。它说链 ID 是 8 字节，却把它们填充为 16 位十进制数字，而且主网偏移量也不符合通用模式。实现之前请对照当前文本核实。\n- 请验证别名内的任何地址。规范建议检查 [ERC-55](/eip-55/) 校验和，检查所谓的 EOA 没有代码，以及检查所谓的代币合约具有预期的代码哈希。\n- 关于人类可读的带链标识的地址，请参阅 [ERC-3770](/eip-3770/) 和 [ERC-7930](/eip-7930/)（两者均尚未最终确定）。\n"}}}
