{"eip":2228,"title":"Canonicalize the name of network ID 1 and chain ID 1","description":"The Ethereum network with network ID 1 and chain ID 1 is named Ethereum Mainnet.","authors":["William Entriken (@fulldecent)"],"status":"Final","type":"Informational","created":"2019-08-04","discussionsTo":"https://github.com/ethereum/EIPs/issues/2228","repo":"EIPs","label":"EIP-2228","officialUrl":"https://eips.ethereum.org/EIPS/eip-2228","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-2228.md","url":"https://eips.huatuo.xyz/eip-2228/","tldr":{"en":"Sets the official name of the Ethereum network with network ID 1 and chain ID 1: \"Ethereum Mainnet\", or just \"Mainnet\", always written as a proper noun.","ja":"ネットワーク ID 1・チェーン ID 1 の Ethereum ネットワークの正式名称を「Ethereum Mainnet」（または単に「Mainnet」）と定め、常に固有名詞として表記する。","ko":"네트워크 ID 1, 체인 ID 1인 이더리움 네트워크의 공식 이름을 \"Ethereum Mainnet\" 또는 그냥 \"Mainnet\"으로 정하고, 항상 고유명사로 표기하도록 한다.","zh":"规定网络 ID 为 1、链 ID 为 1 的以太坊网络的正式名称为「Ethereum Mainnet」，或简称「Mainnet」，并始终作为专有名词书写。"},"tags":["naming","mainnet","chain-id","informational","style"],"explainers":{"en":{"lang":"en","tldr":"Sets the official name of the Ethereum network with network ID 1 and chain ID 1: \"Ethereum Mainnet\", or just \"Mainnet\", always written as a proper noun.","tags":["naming","mainnet","chain-id","informational","style"],"related":[155,2],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-2228/","markdown":"## What problem does it solve?\n\nThe production Ethereum network was written in many ways: \"main net\", \"mainnet\", \"Main net\", \"Mainnet\", \"Main Ethereum Network\". Different EIPs, clients and wallets used different spellings, sometimes even within the same author's documents. That looks unprofessional, and \"the main network\" can be ambiguous: on a page about another chain it could refer to *that* chain's main network.\n\nEIP-2228 picks one canonical name.\n\n## How it works\n\n- The network with **network ID 1 and chain ID 1** (chain ID from [EIP-155](/eip-155/)) is named **Ethereum Mainnet**, or **Mainnet** when the context is clearly Ethereum.\n- It is a **proper noun**: capital \"M\", one word.\n- Other spellings and capitalisations SHALL NOT be used.\n- In all-caps or all-lowercase UI, write \"Mainnet\" in the source and apply the case with styling, so the semantic name stays correct.\n\nExamples from the spec:\n\n| Text | OK? | Why |\n| --- | --- | --- |\n| \"The contract was deployed to Ethereum Mainnet.\" | Yes | Names the network |\n| \"This Dapp was deployed to Mainnet.\" | Yes | Context is clearly Ethereum |\n| \"The main network on Ethereum is Mainnet.\" | Yes | \"main\" is descriptive, \"Mainnet\" the name |\n| \"Deploy your contract to the Ethereum main network.\" | No | Context-dependent, less precise |\n| \"Connect to mainnet.\" | No | Lowercase \"mainnet\" is not a word |\n\nThe spec records that MetaMask, which used \"Main Ethereum Network\", was updated to follow it, and lists older EIPs whose wording is inconsistent.\n\n## Sample code\n\nLabelling networks in a UI, keeping the canonical name in data and applying case in CSS (illustrative):\n\n```ts\nconst NETWORK_NAMES: Record\u003cnumber, string\u003e = {\n  1: \"Ethereum Mainnet\",\n};\n\nfunction networkLabel(chainId: bigint | number): string {\n  return NETWORK_NAMES[Number(chainId)] ?? `Chain ${chainId}`;\n}\n\n// const { chainId } = await provider.getNetwork();\n// header.textContent = networkLabel(chainId);\n```\n\n```html\n\u003c!-- Shows \"SWITCH TO MAINNET\" but the text is still the proper noun --\u003e\n\u003cbutton style=\"text-transform: uppercase\"\u003eSwitch to Mainnet\u003c/button\u003e\n```\n\n## Things to know\n\n- **Final**, Informational: it governs wording, not protocol behaviour.\n- Libraries may still use lowercase identifiers internally (for example a network key `\"mainnet\"`); the EIP is about human-facing names.\n- \"Ethereum\" is a trademark of the Ethereum Foundation. The spec points to the Foundation's terms for usage obligations.\n- It does not choose between \"Dapp\", \"dapp\" or \"dApp\".\n"},"ja":{"lang":"ja","tldr":"ネットワーク ID 1・チェーン ID 1 の Ethereum ネットワークの正式名称を「Ethereum Mainnet」（または単に「Mainnet」）と定め、常に固有名詞として表記する。","tags":["naming","mainnet","chain-id","informational","style"],"related":[155,2],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-2228/","markdown":"## 何を解決するのか\n\n本番の Ethereum ネットワークは、「main net」「mainnet」「Main net」「Mainnet」「Main Ethereum Network」など、さまざまに表記されていました。EIP、クライアント、ウォレットごとに綴りが異なり、同じ著者の文書の中でも揺れていることがありました。これは見栄えが悪く、また「メインネットワーク」は曖昧になりえます。別のチェーンについてのページでは、*そのチェーン*のメインネットワークを指す可能性があるからです。\n\nEIP-2228 は、正式名称を 1 つに決めます。\n\n## 仕組み\n\n- **ネットワーク ID 1・チェーン ID 1**（チェーン ID は [EIP-155](/eip-155/) 由来）のネットワークは **Ethereum Mainnet** と呼びます。文脈が明らかに Ethereum の場合は **Mainnet** とします。\n- これは**固有名詞**です。先頭の \"M\" は大文字で、1 語です。\n- それ以外の綴りや大文字小文字の使い方をしてはなりません（SHALL NOT）。\n- UI が全大文字や全小文字で表示される場合は、ソース上では \"Mainnet\" と書き、スタイリングで表示を変えます。これにより意味上の名称が正しく保たれます。\n\n仕様の例:\n\n| テキスト | 可否 | 理由 |\n| --- | --- | --- |\n| \"The contract was deployed to Ethereum Mainnet.\" | 可 | ネットワークを名指ししている |\n| \"This Dapp was deployed to Mainnet.\" | 可 | 文脈が明らかに Ethereum |\n| \"The main network on Ethereum is Mainnet.\" | 可 | \"main\" は記述的な語で、\"Mainnet\" が名称 |\n| \"Deploy your contract to the Ethereum main network.\" | 不可 | 文脈に依存し、正確さに欠ける |\n| \"Connect to mainnet.\" | 不可 | 小文字の \"mainnet\" は単語ではない |\n\n仕様には、「Main Ethereum Network」を使っていた MetaMask がこれに従うよう更新されたこと、また表現が一貫していない古い EIP の一覧が記録されています。\n\n## サンプルコード\n\nUI でネットワークにラベルを付ける例。正式名称はデータとして保持し、大文字小文字は CSS で適用します（説明用）:\n\n```ts\nconst NETWORK_NAMES: Record\u003cnumber, string\u003e = {\n  1: \"Ethereum Mainnet\",\n};\n\nfunction networkLabel(chainId: bigint | number): string {\n  return NETWORK_NAMES[Number(chainId)] ?? `Chain ${chainId}`;\n}\n\n// const { chainId } = await provider.getNetwork();\n// header.textContent = networkLabel(chainId);\n```\n\n```html\n\u003c!-- Shows \"SWITCH TO MAINNET\" but the text is still the proper noun --\u003e\n\u003cbutton style=\"text-transform: uppercase\"\u003eSwitch to Mainnet\u003c/button\u003e\n```\n\n## 知っておくべきこと\n\n- **Final**、Informational です。規定するのは表現であり、プロトコルの挙動ではありません。\n- ライブラリは内部では引き続き小文字の識別子（たとえばネットワークキー `\"mainnet\"`）を使ってかまいません。この EIP が対象とするのは人が目にする名称です。\n- 「Ethereum」は Ethereum Foundation の商標です。仕様は、使用上の義務について Foundation の規約を参照するよう示しています。\n- 「Dapp」「dapp」「dApp」のどれを使うかは決めていません。\n"},"ko":{"lang":"ko","tldr":"네트워크 ID 1, 체인 ID 1인 이더리움 네트워크의 공식 이름을 \"Ethereum Mainnet\" 또는 그냥 \"Mainnet\"으로 정하고, 항상 고유명사로 표기하도록 한다.","tags":["naming","mainnet","chain-id","informational","style"],"related":[155,2],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-2228/","markdown":"## 어떤 문제를 해결하나요?\n\n이더리움 프로덕션 네트워크는 \"main net\", \"mainnet\", \"Main net\", \"Mainnet\", \"Main Ethereum Network\" 등 다양하게 표기되었습니다. EIP, 클라이언트, 지갑마다 철자가 달랐고, 같은 저자의 문서 안에서도 다른 경우가 있었습니다. 이는 전문적으로 보이지 않고, \"메인 네트워크\"는 모호할 수도 있습니다. 다른 체인을 다루는 페이지에서는 *그 체인*의 메인 네트워크를 가리킬 수 있기 때문입니다.\n\nEIP-2228은 하나의 표준 이름을 정합니다.\n\n## 어떻게 동작하나요?\n\n- **네트워크 ID 1, 체인 ID 1**([EIP-155](/eip-155/)의 체인 ID)인 네트워크의 이름은 **Ethereum Mainnet**이며, 문맥상 이더리움임이 분명할 때는 **Mainnet**이라고 씁니다.\n- 이는 **고유명사**입니다. 대문자 \"M\"으로 시작하는 한 단어입니다.\n- 그 밖의 철자나 대소문자 표기는 사용해서는 안 됩니다(SHALL NOT).\n- 전체 대문자 또는 전체 소문자로 표시되는 UI에서는 소스에는 \"Mainnet\"이라고 쓰고 스타일링으로 대소문자를 적용해, 의미상의 이름이 올바르게 유지되도록 합니다.\n\n스펙의 예시:\n\n| 텍스트 | 허용 여부 | 이유 |\n| --- | --- | --- |\n| \"The contract was deployed to Ethereum Mainnet.\" | 허용 | 네트워크를 지칭함 |\n| \"This Dapp was deployed to Mainnet.\" | 허용 | 문맥상 이더리움이 분명함 |\n| \"The main network on Ethereum is Mainnet.\" | 허용 | \"main\"은 서술어이고 \"Mainnet\"이 이름 |\n| \"Deploy your contract to the Ethereum main network.\" | 불가 | 문맥에 의존하며 덜 정확함 |\n| \"Connect to mainnet.\" | 불가 | 소문자 \"mainnet\"은 단어가 아님 |\n\n스펙에는 \"Main Ethereum Network\"를 쓰던 MetaMask가 이를 따르도록 업데이트되었다는 점과, 표현이 일관되지 않은 오래된 EIP 목록이 기록되어 있습니다.\n\n## 샘플 코드\n\nUI에서 네트워크에 레이블 붙이기. 표준 이름은 데이터에 두고 대소문자는 CSS로 적용합니다(설명용):\n\n```ts\nconst NETWORK_NAMES: Record\u003cnumber, string\u003e = {\n  1: \"Ethereum Mainnet\",\n};\n\nfunction networkLabel(chainId: bigint | number): string {\n  return NETWORK_NAMES[Number(chainId)] ?? `Chain ${chainId}`;\n}\n\n// const { chainId } = await provider.getNetwork();\n// header.textContent = networkLabel(chainId);\n```\n\n```html\n\u003c!-- Shows \"SWITCH TO MAINNET\" but the text is still the proper noun --\u003e\n\u003cbutton style=\"text-transform: uppercase\"\u003eSwitch to Mainnet\u003c/button\u003e\n```\n\n## 알아둘 점\n\n- **Final**, Informational입니다. 다루는 것은 표현이며 프로토콜 동작이 아닙니다.\n- 라이브러리는 내부적으로 여전히 소문자 식별자(예: 네트워크 키 `\"mainnet\"`)를 쓸 수 있습니다. 이 EIP는 사람이 보는 이름에 관한 것입니다.\n- \"Ethereum\"은 Ethereum Foundation의 상표입니다. 스펙은 사용 의무에 대해 재단의 약관을 참조하도록 안내합니다.\n- \"Dapp\", \"dapp\", \"dApp\" 중 무엇을 쓸지는 정하지 않습니다.\n"},"zh":{"lang":"zh","tldr":"规定网络 ID 为 1、链 ID 为 1 的以太坊网络的正式名称为「Ethereum Mainnet」，或简称「Mainnet」，并始终作为专有名词书写。","tags":["naming","mainnet","chain-id","informational","style"],"related":[155,2],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-2228/","markdown":"## 它解决什么问题？\n\n以太坊的生产网络有很多种写法：「main net」「mainnet」「Main net」「Mainnet」「Main Ethereum Network」。不同的 EIP、客户端和钱包使用不同拼写，有时甚至同一位作者的文档里也不统一。这显得不专业，而且「主网络」可能有歧义：在介绍另一条链的页面上，它可能指的是*那条链*的主网络。\n\nEIP-2228 选定了一个规范名称。\n\n## 它如何运作\n\n- **网络 ID 为 1 且链 ID 为 1**（链 ID 来自 [EIP-155](/eip-155/)）的网络命名为 **Ethereum Mainnet**，当上下文明显指以太坊时可写作 **Mainnet**。\n- 它是**专有名词**：首字母 \"M\" 大写，一个单词。\n- 不得（SHALL NOT）使用其他拼写和大小写形式。\n- 在全大写或全小写的 UI 中，源码里写 \"Mainnet\"，再通过样式应用大小写，这样语义上的名称依然正确。\n\n规范中的示例：\n\n| 文本 | 是否可以 | 原因 |\n| --- | --- | --- |\n| \"The contract was deployed to Ethereum Mainnet.\" | 可以 | 指明了网络 |\n| \"This Dapp was deployed to Mainnet.\" | 可以 | 上下文明显是以太坊 |\n| \"The main network on Ethereum is Mainnet.\" | 可以 | \"main\" 是描述性词语，\"Mainnet\" 才是名称 |\n| \"Deploy your contract to the Ethereum main network.\" | 不可以 | 依赖上下文，不够精确 |\n| \"Connect to mainnet.\" | 不可以 | 小写的 \"mainnet\" 不是一个词 |\n\n规范记录了此前使用「Main Ethereum Network」的 MetaMask 已更新以遵循该规定，并列出了措辞不一致的旧 EIP。\n\n## 示例代码\n\n在 UI 中标注网络，数据中保留规范名称，大小写通过 CSS 应用（仅作演示）：\n\n```ts\nconst NETWORK_NAMES: Record\u003cnumber, string\u003e = {\n  1: \"Ethereum Mainnet\",\n};\n\nfunction networkLabel(chainId: bigint | number): string {\n  return NETWORK_NAMES[Number(chainId)] ?? `Chain ${chainId}`;\n}\n\n// const { chainId } = await provider.getNetwork();\n// header.textContent = networkLabel(chainId);\n```\n\n```html\n\u003c!-- Shows \"SWITCH TO MAINNET\" but the text is still the proper noun --\u003e\n\u003cbutton style=\"text-transform: uppercase\"\u003eSwitch to Mainnet\u003c/button\u003e\n```\n\n## 需要注意\n\n- 状态为 **Final**，属于 Informational：它规范的是用词，而非协议行为。\n- 库在内部仍可使用小写标识符（例如网络键 `\"mainnet\"`）；该 EIP 针对的是面向人的名称。\n- 「Ethereum」是 Ethereum Foundation 的商标。规范指向基金会的条款以了解使用义务。\n- 它没有在 \"Dapp\"、\"dapp\" 和 \"dApp\" 之间做出选择。\n"}}}
