{"eip":7927,"title":"History Expiry Meta","description":"Meta EIP for History Expiry changes happening in conjunction with Pectra","authors":["Piper Merriam (@pipermerriam)"],"status":"Stagnant","type":"Meta","created":"2025-03-28","requires":[4444],"discussionsTo":"https://ethereum-magicians.org/t/history-expiry-meta-eip/23359","repo":"EIPs","label":"EIP-7927","officialUrl":"https://eips.ethereum.org/EIPS/eip-7927","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-7927.md","url":"https://eips.huatuo.xyz/eip-7927/","tldr":{"en":"The coordinating Meta EIP for letting execution clients drop pre-merge block history, listing the supporting EIPs and the devnet, Sepolia and post-Pectra mainnet rollout plan.","ja":"実行クライアントがマージ前のブロック履歴を破棄できるようにするための、調整役のメタ EIP。関連する EIP と、devnet、Sepolia、Pectra 後のメインネットへの展開計画を一覧にする。","ko":"실행 클라이언트가 머지 이전 블록 히스토리를 버릴 수 있게 하기 위한 조율용 Meta EIP. 관련 지원 EIP들과 devnet, Sepolia, Pectra 이후 메인넷의 배포 계획을 나열한다.","zh":"让执行客户端丢弃合并前区块历史的协调性 Meta EIP，列出相关的支持性 EIP，以及在 devnet、Sepolia 和 Pectra 之后主网上的推出计划。"},"tags":["meta","history-expiry","clients","networking","storage"],"explainers":{"en":{"lang":"en","tldr":"The coordinating Meta EIP for letting execution clients drop pre-merge block history, listing the supporting EIPs and the devnet, Sepolia and post-Pectra mainnet rollout plan.","tags":["meta","history-expiry","clients","networking","storage"],"related":[4444,7642,6110,7639,7801],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-7927/","markdown":"## What problem does it solve?\n\nEvery Ethereum execution client has traditionally stored and served the full chain history back to genesis. That costs hundreds of gigabytes of disk and is rarely needed to validate new blocks. [EIP-4444](/eip-4444/) set the goal of bounding the history clients must keep.\n\nEIP-7927 is not a protocol change itself. It is a Meta EIP that pulls the pieces together for the first concrete step: allowing clients to drop **pre-merge** history, and explains how that will be activated on devnets, Sepolia and mainnet.\n\n## How it works\n\nThe spec ties together three requirements:\n\n- **Execution clients MUST implement [EIP-7642](/eip-7642/)** (`eth/69`), the DevP2P version that copes with peers not having full history.\n- **Execution clients MAY drop pre-merge history** as described in [EIP-7639](/eip-7639/).\n- **Consensus clients SHOULD NOT rely on pre-merge deposit logs** and SHOULD implement [EIP-6110](/eip-6110/), which delivers validator deposits on-chain from Pectra onward.\n\nRollout plan:\n\n1. **Devnets** first, to catch breakage early.\n2. **Sepolia**: execution clients may drop pre-merge history from 2025-05-01.\n3. **Mainnet**: a few days or weeks after the Pectra hard fork, so that all pre-fork deposit logs have been processed before anyone deletes them.\n\nWhere the old data lives instead: e2store archive files (listed on the eth-clients website), the Portal network, and the proposed [EIP-7801](/eip-7801/) DevP2P subprotocol.\n\n## Sample code\n\nWhat a dApp may see when it asks a pruned node for a pre-merge block (ethers v6, illustrative):\n\n```ts\nimport { JsonRpcProvider } from \"ethers\";\n\nconst provider = new JsonRpcProvider(process.env.RPC_URL);\n\n// Block 1,000,000 is from 2016, long before the merge.\nconst block = await provider.getBlock(1_000_000);\nif (block === null) {\n  // A node that dropped pre-merge history may return null or an error here.\n  // Fall back to an archive provider or e2store/Portal data instead.\n  console.log(\"pre-merge history not available on this node\");\n}\n```\n\n## Things to know\n\n- **Status: Stagnant** as an EIP document, even though it describes a coordinated rollout plan.\n- Dropping history is optional. Clients that want to keep serving it for JSON-RPC may do so.\n- On nodes that drop it, pre-merge lookups such as `eth_getBlockByNumber`, `eth_getTransactionByHash` and `eth_getTransactionReceipt` stop working unless the client fetches the data elsewhere.\n- Full sync from genesis over `eth` is no longer possible from such peers. Clients that import old blocks from other sources must still validate them.\n"},"ja":{"lang":"ja","tldr":"実行クライアントがマージ前のブロック履歴を破棄できるようにするための、調整役のメタ EIP。関連する EIP と、devnet、Sepolia、Pectra 後のメインネットへの展開計画を一覧にする。","tags":["meta","history-expiry","clients","networking","storage"],"related":[4444,7642,6110,7639,7801],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-7927/","markdown":"## 何を解決するのか\n\nEthereum の実行クライアントは従来、ジェネシスまで遡る完全なチェーン履歴を保存し、提供してきました。これには数百ギガバイトのディスクが必要で、新しいブロックの検証にはめったに必要ありません。[EIP-4444](/eip-4444/) は、クライアントが保持しなければならない履歴に上限を設けるという目標を定めました。\n\nEIP-7927 自体はプロトコルの変更ではありません。最初の具体的なステップ、つまりクライアントが**マージ前**の履歴を破棄できるようにすることのために、各要素をまとめるメタ EIP であり、それが devnet、Sepolia、メインネットでどのように有効化されるかを説明します。\n\n## 仕組み\n\n仕様は 3 つの要件を結びつけます。\n\n- **実行クライアントは [EIP-7642](/eip-7642/)**（`eth/69`）**を実装しなければならない（MUST）**。これは、ピアが完全な履歴を持たない状況に対応する DevP2P のバージョンです。\n- **実行クライアントは、[EIP-7639](/eip-7639/) に記述されているとおり、マージ前の履歴を破棄してもよい（MAY）**。\n- **コンセンサスクライアントは、マージ前のデポジットログに依存すべきでない（SHOULD NOT）**。また、Pectra 以降のバリデーターのデポジットをオンチェーンで届ける [EIP-6110](/eip-6110/) を実装すべき（SHOULD）です。\n\n展開計画:\n\n1. まず **devnet**。問題を早期に見つけるため。\n2. **Sepolia**: 実行クライアントは 2025-05-01 以降、マージ前の履歴を破棄してもよい。\n3. **メインネット**: Pectra ハードフォークの数日から数週間後。誰かが削除する前に、フォーク前のデポジットログがすべて処理されているようにするため。\n\n古いデータの代わりの置き場所は、e2store アーカイブファイル（eth-clients のウェブサイトに一覧あり）、Portal ネットワーク、そして提案中の [EIP-7801](/eip-7801/) の DevP2P サブプロトコルです。\n\n## サンプルコード\n\nプルーニングされたノードにマージ前のブロックを尋ねたときに、dApp に見えうるもの（ethers v6、説明用）:\n\n```ts\nimport { JsonRpcProvider } from \"ethers\";\n\nconst provider = new JsonRpcProvider(process.env.RPC_URL);\n\n// Block 1,000,000 is from 2016, long before the merge.\nconst block = await provider.getBlock(1_000_000);\nif (block === null) {\n  // A node that dropped pre-merge history may return null or an error here.\n  // Fall back to an archive provider or e2store/Portal data instead.\n  console.log(\"pre-merge history not available on this node\");\n}\n```\n\n## 知っておくべきこと\n\n- **ステータス: Stagnant**（EIP 文書として）。調整された展開計画を記述しているにもかかわらず、です。\n- 履歴の破棄は任意です。JSON-RPC 向けに引き続き提供したいクライアントは、そうしてかまいません。\n- 破棄したノードでは、クライアントがデータを別の場所から取得しない限り、`eth_getBlockByNumber`、`eth_getTransactionByHash`、`eth_getTransactionReceipt` などのマージ前の参照が動作しなくなります。\n- そのようなピアからは、`eth` 経由でジェネシスからの完全同期はできなくなります。古いブロックを他のソースからインポートするクライアントも、引き続きそれらを検証しなければなりません。\n"},"ko":{"lang":"ko","tldr":"실행 클라이언트가 머지 이전 블록 히스토리를 버릴 수 있게 하기 위한 조율용 Meta EIP. 관련 지원 EIP들과 devnet, Sepolia, Pectra 이후 메인넷의 배포 계획을 나열한다.","tags":["meta","history-expiry","clients","networking","storage"],"related":[4444,7642,6110,7639,7801],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-7927/","markdown":"## 어떤 문제를 해결하나요?\n\n이더리움 실행 클라이언트는 전통적으로 제네시스까지 거슬러 올라가는 전체 체인 히스토리를 저장하고 제공해 왔습니다. 이는 수백 기가바이트의 디스크를 차지하면서도 새 블록을 검증하는 데는 거의 필요하지 않습니다. [EIP-4444](/eip-4444/)는 클라이언트가 보관해야 하는 히스토리에 한도를 두겠다는 목표를 세웠습니다.\n\nEIP-7927 자체는 프로토콜 변경이 아닙니다. 첫 번째 구체적 단계, 즉 클라이언트가 **머지 이전** 히스토리를 버릴 수 있게 하는 데 필요한 조각들을 하나로 묶는 Meta EIP이며, 이것이 devnet, Sepolia, 메인넷에서 어떻게 활성화될지 설명합니다.\n\n## 어떻게 동작하나요?\n\n명세는 세 가지 요구 사항을 묶습니다.\n\n- **실행 클라이언트는 [EIP-7642](/eip-7642/)**(`eth/69`)**를 구현해야 합니다(MUST).** 피어가 전체 히스토리를 갖고 있지 않은 상황에 대처하는 DevP2P 버전입니다.\n- **실행 클라이언트는 [EIP-7639](/eip-7639/)에 설명된 대로 머지 이전 히스토리를 버려도 됩니다(MAY).**\n- **합의 클라이언트는 머지 이전 예치 로그에 의존해서는 안 되며(SHOULD NOT)**, Pectra부터 검증자 예치를 온체인으로 전달하는 [EIP-6110](/eip-6110/)을 구현해야 합니다(SHOULD).\n\n배포 계획:\n\n1. 문제를 일찍 잡아내기 위해 먼저 **devnet**.\n2. **Sepolia**: 실행 클라이언트는 2025-05-01부터 머지 이전 히스토리를 버려도 됩니다.\n3. **메인넷**: Pectra 하드포크 며칠 또는 몇 주 뒤. 누군가 삭제하기 전에 포크 이전의 모든 예치 로그가 처리되도록 하기 위해서입니다.\n\n옛 데이터가 대신 있는 곳은 e2store 아카이브 파일(eth-clients 웹사이트에 목록 있음), Portal 네트워크, 제안된 [EIP-7801](/eip-7801/) DevP2P 서브프로토콜입니다.\n\n## 샘플 코드\n\n가지치기된 노드에 머지 이전 블록을 요청할 때 dApp이 볼 수 있는 모습(ethers v6, 설명용):\n\n```ts\nimport { JsonRpcProvider } from \"ethers\";\n\nconst provider = new JsonRpcProvider(process.env.RPC_URL);\n\n// Block 1,000,000 is from 2016, long before the merge.\nconst block = await provider.getBlock(1_000_000);\nif (block === null) {\n  // A node that dropped pre-merge history may return null or an error here.\n  // Fall back to an archive provider or e2store/Portal data instead.\n  console.log(\"pre-merge history not available on this node\");\n}\n```\n\n## 알아둘 점\n\n- EIP 문서로서의 **상태: Stagnant**입니다. 조율된 배포 계획을 설명하고 있는데도 그렇습니다.\n- 히스토리를 버리는 것은 선택 사항입니다. JSON-RPC로 계속 제공하려는 클라이언트는 그렇게 해도 됩니다.\n- 히스토리를 버린 노드에서는 클라이언트가 데이터를 다른 곳에서 가져오지 않는 한 `eth_getBlockByNumber`, `eth_getTransactionByHash`, `eth_getTransactionReceipt` 같은 머지 이전 조회가 동작하지 않습니다.\n- 그런 피어로부터는 `eth`를 통한 제네시스부터의 전체 동기화가 더 이상 불가능합니다. 다른 소스에서 오래된 블록을 가져오는 클라이언트도 여전히 이를 검증해야 합니다.\n"},"zh":{"lang":"zh","tldr":"让执行客户端丢弃合并前区块历史的协调性 Meta EIP，列出相关的支持性 EIP，以及在 devnet、Sepolia 和 Pectra 之后主网上的推出计划。","tags":["meta","history-expiry","clients","networking","storage"],"related":[4444,7642,6110,7639,7801],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-7927/","markdown":"## 它解决什么问题？\n\n以太坊执行客户端历来都存储并提供一直回溯到创世区块的完整链历史。这要占用数百 GB 的磁盘，而验证新区块时又很少需要用到。[EIP-4444](/eip-4444/) 确立了限制客户端必须保留的历史范围的目标。\n\nEIP-7927 本身并不是协议变更。它是一个 Meta EIP，把第一步具体措施所需的各个部分整合在一起：允许客户端丢弃**合并前**的历史，并说明这将如何在 devnet、Sepolia 和主网上激活。\n\n## 它如何运作\n\n规范把三项要求关联在一起：\n\n- **执行客户端必须（MUST）实现 [EIP-7642](/eip-7642/)**（`eth/69`），这是能够应对对等节点没有完整历史的 DevP2P 版本。\n- **执行客户端可以（MAY）按照 [EIP-7639](/eip-7639/) 的描述丢弃合并前的历史。**\n- **共识客户端不应（SHOULD NOT）依赖合并前的存款日志**，并且应当（SHOULD）实现 [EIP-6110](/eip-6110/)，它从 Pectra 起在链上传递验证者存款。\n\n推出计划：\n\n1. 首先是 **devnet**，以便尽早发现问题。\n2. **Sepolia**：执行客户端可以从 2025-05-01 起丢弃合并前的历史。\n3. **主网**：在 Pectra 硬分叉之后几天或几周，以确保分叉前的所有存款日志都已处理完毕，然后才有人删除它们。\n\n旧数据改存放在这些地方：e2store 归档文件（列在 eth-clients 网站上）、Portal 网络，以及被提议的 [EIP-7801](/eip-7801/) DevP2P 子协议。\n\n## 示例代码\n\ndApp 向已裁剪节点请求合并前区块时可能看到的情形（ethers v6，仅作示意）：\n\n```ts\nimport { JsonRpcProvider } from \"ethers\";\n\nconst provider = new JsonRpcProvider(process.env.RPC_URL);\n\n// Block 1,000,000 is from 2016, long before the merge.\nconst block = await provider.getBlock(1_000_000);\nif (block === null) {\n  // A node that dropped pre-merge history may return null or an error here.\n  // Fall back to an archive provider or e2store/Portal data instead.\n  console.log(\"pre-merge history not available on this node\");\n}\n```\n\n## 需要注意\n\n- 作为 EIP 文档，**状态：Stagnant**，尽管它描述的是一个协调的推出计划。\n- 丢弃历史是可选的。希望继续为 JSON-RPC 提供这些数据的客户端可以这样做。\n- 在丢弃了历史的节点上，除非客户端从别处获取数据，否则 `eth_getBlockByNumber`、`eth_getTransactionByHash` 和 `eth_getTransactionReceipt` 等针对合并前数据的查询将无法工作。\n- 无法再通过 `eth` 从这类对等节点进行从创世区块开始的完整同步。从其他来源导入旧区块的客户端仍必须验证它们。\n"}}}
