{"eip":3770,"title":"Chain-specific addresses","description":"Prepending chain-specific addresses with a human-readable chain identifier","authors":["Lukas Schor (@lukasschor)","Richard Meissner (@rmeissner)","Pedro Gomes (@pedrouid)","ligi \u003cligi@ligi.de\u003e"],"status":"Draft","type":"Standards Track","category":"ERC","created":"2021-08-26","discussionsTo":"https://ethereum-magicians.org/t/chain-specific-addresses/6449","repo":"ERCs","label":"ERC-3770","officialUrl":"https://eips.ethereum.org/EIPS/eip-3770","sourceUrl":"https://github.com/ethereum/ERCs/blob/master/ERCS/erc-3770.md","url":"https://eips.huatuo.xyz/eip-3770/","tldr":{"en":"Prefixes an address with a human-readable chain short name, like `eth:0x…`, so wallets and users can tell which network an address belongs to.","ja":"アドレスの前に `eth:0x…` のような人間が読めるチェーン短縮名を付け、ウォレットやユーザーがそのアドレスがどのネットワークのものか分かるようにする。","ko":"주소 앞에 `eth:0x…`처럼 사람이 읽을 수 있는 체인 약칭을 붙여, 지갑과 사용자가 그 주소가 어느 네트워크의 것인지 알 수 있게 한다.","zh":"在地址前加上人类可读的链简称前缀，如 `eth:0x…`，让钱包和用户能分辨一个地址属于哪个网络。"},"tags":["address","multichain","wallet","ux"],"explainers":{"en":{"lang":"en","tldr":"Prefixes an address with a human-readable chain short name, like `eth:0x…`, so wallets and users can tell which network an address belongs to.","tags":["address","multichain","wallet","ux"],"related":[55,155,7930],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-3770/","markdown":"## What problem does it solve?\n\nEvery EVM chain uses the same 20-byte address format. `0xAbC…` on Ethereum Mainnet and `0xAbC…` on an L2 or sidechain look identical, but they can be completely different things: an EOA on one chain, a contract on another, or nothing at all. A classic way to lose funds is sending tokens to a smart contract wallet address on a chain where that wallet was never deployed.\n\nThe chain ID from [EIP-155](/eip-155/) already identifies networks, but it is a number designed for developers and signatures, not something people recognise at a glance. ERC-3770 gives addresses a short, readable chain label that travels with the address itself.\n\n## How it works\n\nA chain-specific address is simply:\n\n```\nshortName:address\n```\n\n- `shortName` is mandatory and must be a valid chain short name from the community registry at `github.com/ethereum-lists/chains` (the same list that maps short names to chain IDs).\n- `address` is mandatory and must be an [EIP-55](/eip-55/) checksummed hex address.\n- The two parts are separated by a single colon.\n\nThat is the whole specification. A wallet or dApp that sees a prefixed address looks up the short name in the registry, resolves it to a chain ID, and can then warn the user (or switch networks) if the address is being used on the wrong chain. Displaying addresses this way also makes copy-pasted addresses self-describing.\n\n## Sample code\n\nParsing and validating a chain-specific address in TypeScript (ethers v6). The short-name table here is a tiny illustrative subset; a real app should load the ethereum-lists registry.\n\n```ts\nimport { getAddress } from \"ethers\";\n\n// Illustrative subset; load the full registry in production.\nconst SHORT_NAMES: Record\u003cstring, number\u003e = {\n  eth: 1,\n  oeth: 10,\n  arb1: 42161,\n};\n\nexport function parseChainAddress(input: string) {\n  const idx = input.indexOf(\":\");\n  if (idx \u003c= 0) throw new Error(\"missing chain short name\");\n  const shortName = input.slice(0, idx);\n  const raw = input.slice(idx + 1);\n\n  const chainId = SHORT_NAMES[shortName];\n  if (chainId === undefined) throw new Error(`unknown chain: ${shortName}`);\n\n  const address = getAddress(raw); // throws on a bad EIP-55 checksum\n  return { shortName, chainId, address };\n}\n\nexport function formatChainAddress(shortName: string, address: string) {\n  return `${shortName}:${getAddress(address)}`;\n}\n```\n\nChecking the user is on the right network before sending:\n\n```ts\nconst { chainId, address } = parseChainAddress(userInput);\nconst net = await provider.getNetwork();\nif (net.chainId !== BigInt(chainId)) {\n  throw new Error(`address is for chain ${chainId}, wallet is on ${net.chainId}`);\n}\n```\n\n## Things to know\n\n- **Status: Draft.** The format is used informally by some wallets and multisig tools, but the proposal itself has not been finalised.\n- The prefix is display and input metadata only. Nothing changes on-chain: contracts and transactions still use plain 20-byte addresses.\n- Short names come from an external, community-maintained registry, so correctness depends on that list. The spec warns that similar-looking short names could be used to confuse users.\n- An unprefixed address still needs outside context to know which chain it refers to.\n- For a more general, binary-and-text cross-chain address format, see [ERC-7930](/eip-7930/) (Interoperable Addresses).\n"},"ja":{"lang":"ja","tldr":"アドレスの前に `eth:0x…` のような人間が読めるチェーン短縮名を付け、ウォレットやユーザーがそのアドレスがどのネットワークのものか分かるようにする。","tags":["address","multichain","wallet","ux"],"related":[55,155,7930],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-3770/","markdown":"## 何を解決するのか\n\nすべての EVM チェーンは同じ 20 バイトのアドレス形式を使います。Ethereum メインネットの `0xAbC…` と、L2 やサイドチェーンの `0xAbC…` は同じに見えますが、まったく別のものかもしれません。あるチェーンでは EOA、別のチェーンではコントラクト、あるいは何も存在しない、ということもあります。資金を失う典型的な原因は、そのウォレットがデプロイされたことのないチェーンで、スマートコントラクトウォレットのアドレスにトークンを送ってしまうことです。\n\n[EIP-155](/eip-155/) のチェーン ID はすでにネットワークを識別していますが、開発者と署名のために設計された数値であり、人がひと目で認識できるものではありません。ERC-3770 は、アドレス自体に付いて回る、短くて読みやすいチェーンのラベルをアドレスに与えます。\n\n## 仕組み\n\nチェーン固有のアドレスは、単純に次の形です。\n\n```\nshortName:address\n```\n\n- `shortName` は必須で、`github.com/ethereum-lists/chains` にあるコミュニティのレジストリ（短縮名をチェーン ID に対応付ける同じリスト）に載っている有効なチェーン短縮名でなければなりません。\n- `address` は必須で、[EIP-55](/eip-55/) のチェックサム付き 16 進アドレスでなければなりません。\n- 2 つの部分は、コロン 1 つで区切ります。\n\n仕様はこれがすべてです。プレフィックス付きのアドレスを見たウォレットや dApp は、レジストリで短縮名を検索してチェーン ID に解決し、アドレスが誤ったチェーンで使われている場合にユーザーに警告する（またはネットワークを切り替える）ことができます。アドレスをこの形で表示すると、コピー＆ペーストしたアドレスが自己記述的にもなります。\n\n## サンプルコード\n\nTypeScript（ethers v6）でチェーン固有アドレスをパースして検証する例。ここでの短縮名テーブルは説明用のごく小さな部分集合です。実際のアプリでは ethereum-lists のレジストリを読み込んでください。\n\n```ts\nimport { getAddress } from \"ethers\";\n\n// Illustrative subset; load the full registry in production.\nconst SHORT_NAMES: Record\u003cstring, number\u003e = {\n  eth: 1,\n  oeth: 10,\n  arb1: 42161,\n};\n\nexport function parseChainAddress(input: string) {\n  const idx = input.indexOf(\":\");\n  if (idx \u003c= 0) throw new Error(\"missing chain short name\");\n  const shortName = input.slice(0, idx);\n  const raw = input.slice(idx + 1);\n\n  const chainId = SHORT_NAMES[shortName];\n  if (chainId === undefined) throw new Error(`unknown chain: ${shortName}`);\n\n  const address = getAddress(raw); // throws on a bad EIP-55 checksum\n  return { shortName, chainId, address };\n}\n\nexport function formatChainAddress(shortName: string, address: string) {\n  return `${shortName}:${getAddress(address)}`;\n}\n```\n\n送信前にユーザーが正しいネットワークにいるかを確認する例:\n\n```ts\nconst { chainId, address } = parseChainAddress(userInput);\nconst net = await provider.getNetwork();\nif (net.chainId !== BigInt(chainId)) {\n  throw new Error(`address is for chain ${chainId}, wallet is on ${net.chainId}`);\n}\n```\n\n## 知っておくべきこと\n\n- **ステータス: Draft。** この形式は一部のウォレットやマルチシグツールで非公式に使われていますが、提案自体は確定していません。\n- プレフィックスは表示と入力のためのメタデータにすぎません。オンチェーンでは何も変わらず、コントラクトとトランザクションは引き続き素の 20 バイトのアドレスを使います。\n- 短縮名は外部のコミュニティが管理するレジストリから来るため、正しさはそのリストに依存します。仕様は、似た見た目の短縮名がユーザーを混乱させるために使われうると警告しています。\n- プレフィックスなしのアドレスは、どのチェーンを指すのかを知るために、依然として外部の文脈を必要とします。\n- より汎用的な、バイナリとテキストの両方に対応するクロスチェーンのアドレス形式については、[ERC-7930](/eip-7930/)（Interoperable Addresses）を参照してください。\n"},"ko":{"lang":"ko","tldr":"주소 앞에 `eth:0x…`처럼 사람이 읽을 수 있는 체인 약칭을 붙여, 지갑과 사용자가 그 주소가 어느 네트워크의 것인지 알 수 있게 한다.","tags":["address","multichain","wallet","ux"],"related":[55,155,7930],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-3770/","markdown":"## 어떤 문제를 해결하나요?\n\n모든 EVM 체인은 같은 20바이트 주소 형식을 씁니다. 이더리움 메인넷의 `0xAbC…`와 L2나 사이드체인의 `0xAbC…`는 똑같아 보이지만 전혀 다른 것일 수 있습니다. 한 체인에서는 EOA, 다른 체인에서는 컨트랙트, 혹은 아무것도 아닐 수도 있습니다. 자금을 잃는 전형적인 원인은 그 지갑이 한 번도 배포된 적 없는 체인에서 스마트 컨트랙트 지갑 주소로 토큰을 보내는 것입니다.\n\n[EIP-155](/eip-155/)의 체인 ID가 이미 네트워크를 식별하지만, 개발자와 서명을 위해 설계된 숫자라서 사람이 한눈에 알아보기 어렵습니다. ERC-3770은 주소에 짧고 읽기 쉬운 체인 라벨을 주어 주소 자체와 함께 다니게 합니다.\n\n## 어떻게 동작하나요?\n\n체인별 주소는 다음과 같은 형태입니다.\n\n```\nshortName:address\n```\n\n- `shortName`은 필수이며, `github.com/ethereum-lists/chains`의 커뮤니티 레지스트리(약칭을 체인 ID에 매핑하는 바로 그 목록)에 있는 유효한 체인 약칭이어야 합니다.\n- `address`는 필수이며 [EIP-55](/eip-55/) 체크섬이 적용된 16진수 주소여야 합니다.\n- 두 부분은 콜론 하나로 구분합니다.\n\n명세는 이것이 전부입니다. 접두사가 붙은 주소를 본 지갑이나 dApp은 레지스트리에서 약칭을 찾아 체인 ID로 변환하고, 주소가 잘못된 체인에서 쓰이면 사용자에게 경고하거나 네트워크를 전환할 수 있습니다. 주소를 이렇게 표시하면 복사해 붙여 넣은 주소도 스스로 설명하는 주소가 됩니다.\n\n## 샘플 코드\n\nTypeScript(ethers v6)로 체인별 주소를 파싱하고 검증하기. 여기의 약칭 표는 아주 작은 예시용 부분집합이며, 실제 앱은 ethereum-lists 레지스트리를 불러와야 합니다.\n\n```ts\nimport { getAddress } from \"ethers\";\n\n// Illustrative subset; load the full registry in production.\nconst SHORT_NAMES: Record\u003cstring, number\u003e = {\n  eth: 1,\n  oeth: 10,\n  arb1: 42161,\n};\n\nexport function parseChainAddress(input: string) {\n  const idx = input.indexOf(\":\");\n  if (idx \u003c= 0) throw new Error(\"missing chain short name\");\n  const shortName = input.slice(0, idx);\n  const raw = input.slice(idx + 1);\n\n  const chainId = SHORT_NAMES[shortName];\n  if (chainId === undefined) throw new Error(`unknown chain: ${shortName}`);\n\n  const address = getAddress(raw); // throws on a bad EIP-55 checksum\n  return { shortName, chainId, address };\n}\n\nexport function formatChainAddress(shortName: string, address: string) {\n  return `${shortName}:${getAddress(address)}`;\n}\n```\n\n보내기 전에 사용자가 올바른 네트워크에 있는지 확인하기:\n\n```ts\nconst { chainId, address } = parseChainAddress(userInput);\nconst net = await provider.getNetwork();\nif (net.chainId !== BigInt(chainId)) {\n  throw new Error(`address is for chain ${chainId}, wallet is on ${net.chainId}`);\n}\n```\n\n## 알아둘 점\n\n- **상태: Draft.** 이 형식은 일부 지갑과 멀티시그 도구에서 비공식적으로 쓰이지만 제안 자체는 확정되지 않았습니다.\n- 접두사는 표시와 입력용 메타데이터일 뿐입니다. 온체인에서는 아무것도 바뀌지 않으며, 컨트랙트와 트랜잭션은 여전히 일반 20바이트 주소를 씁니다.\n- 약칭은 외부 커뮤니티가 관리하는 레지스트리에서 오므로 정확성은 그 목록에 달려 있습니다. 명세는 비슷해 보이는 약칭이 사용자를 혼란스럽게 하는 데 쓰일 수 있다고 경고합니다.\n- 접두사가 없는 주소는 어느 체인을 가리키는지 알려면 여전히 외부 맥락이 필요합니다.\n- 더 일반적인, 바이너리와 텍스트를 모두 지원하는 크로스체인 주소 형식은 [ERC-7930](/eip-7930/)(Interoperable Addresses)을 참고하세요.\n"},"zh":{"lang":"zh","tldr":"在地址前加上人类可读的链简称前缀，如 `eth:0x…`，让钱包和用户能分辨一个地址属于哪个网络。","tags":["address","multichain","wallet","ux"],"related":[55,155,7930],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-3770/","markdown":"## 它解决什么问题？\n\n每条 EVM 链都使用相同的 20 字节地址格式。以太坊主网上的 `0xAbC…` 和某个 L2 或侧链上的 `0xAbC…` 看起来完全一样，但它们可能是截然不同的东西：在一条链上是 EOA，在另一条链上是合约，或者什么都不是。丢失资金的一个经典原因，就是把代币发送到某个智能合约钱包地址，而该钱包在这条链上从未被部署。\n\n[EIP-155](/eip-155/) 的链 ID 已经能识别网络，但它是为开发者和签名设计的数字，不是人们一眼就能认出的东西。ERC-3770 给地址加上一个简短、可读的链标签，随地址本身一起传递。\n\n## 它如何运作\n\n链专属地址就是：\n\n```\nshortName:address\n```\n\n- `shortName` 是必需的，必须是 `github.com/ethereum-lists/chains` 社区注册表中的有效链简称（也就是把简称映射到链 ID 的同一份列表）。\n- `address` 是必需的，必须是符合 [EIP-55](/eip-55/) 校验和的十六进制地址。\n- 两部分之间用一个冒号分隔。\n\n这就是全部规范。看到带前缀地址的钱包或 dApp，会在注册表中查找该简称，将其解析为链 ID，然后在地址被用在错误的链上时警告用户（或切换网络）。以这种方式显示地址，也让复制粘贴的地址具备自描述性。\n\n## 示例代码\n\n用 TypeScript（ethers v6）解析并验证链专属地址。这里的简称表只是一个很小的示意子集；真实应用应加载 ethereum-lists 注册表。\n\n```ts\nimport { getAddress } from \"ethers\";\n\n// Illustrative subset; load the full registry in production.\nconst SHORT_NAMES: Record\u003cstring, number\u003e = {\n  eth: 1,\n  oeth: 10,\n  arb1: 42161,\n};\n\nexport function parseChainAddress(input: string) {\n  const idx = input.indexOf(\":\");\n  if (idx \u003c= 0) throw new Error(\"missing chain short name\");\n  const shortName = input.slice(0, idx);\n  const raw = input.slice(idx + 1);\n\n  const chainId = SHORT_NAMES[shortName];\n  if (chainId === undefined) throw new Error(`unknown chain: ${shortName}`);\n\n  const address = getAddress(raw); // throws on a bad EIP-55 checksum\n  return { shortName, chainId, address };\n}\n\nexport function formatChainAddress(shortName: string, address: string) {\n  return `${shortName}:${getAddress(address)}`;\n}\n```\n\n发送前检查用户是否处于正确的网络：\n\n```ts\nconst { chainId, address } = parseChainAddress(userInput);\nconst net = await provider.getNetwork();\nif (net.chainId !== BigInt(chainId)) {\n  throw new Error(`address is for chain ${chainId}, wallet is on ${net.chainId}`);\n}\n```\n\n## 需要注意\n\n- **状态：Draft。** 一些钱包和多签工具非正式地使用这种格式，但提案本身尚未最终确定。\n- 前缀只是显示和输入用的元数据。链上没有任何变化：合约和交易仍然使用普通的 20 字节地址。\n- 简称来自外部由社区维护的注册表，所以正确性取决于那份列表。规范警告说，外观相似的简称可能被用来迷惑用户。\n- 没有前缀的地址仍然需要外部上下文才能知道它指的是哪条链。\n- 若需要更通用、同时支持二进制和文本的跨链地址格式，请参阅 [ERC-7930](/eip-7930/)（Interoperable Addresses）。\n"}},"requiredBy":[6821]}
