{"eip":4895,"title":"Beacon chain push withdrawals as operations","description":"Support validator withdrawals from the beacon chain to the EVM via a new \"system-level\" operation type.","authors":["Alex Stokes (@ralexstokes)","Danny Ryan (@djrtwo)"],"status":"Final","type":"Standards Track","category":"Core","created":"2022-03-10","discussionsTo":"https://ethereum-magicians.org/t/eip-4895-beacon-chain-withdrawals-as-system-level-operations/8568","repo":"EIPs","label":"EIP-4895","officialUrl":"https://eips.ethereum.org/EIPS/eip-4895","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-4895.md","url":"https://eips.huatuo.xyz/eip-4895/","tldr":{"en":"Lets validator withdrawals flow from the beacon chain into the execution layer as a new system-level \"withdrawal\" operation that credits ETH to an address without a transaction or gas; activated in the Shanghai/Capella upgrade.","ja":"バリデーターの出金を、ビーコンチェーンから実行レイヤーへ、トランザクションもガスも不要でアドレスに ETH を入金する新しいシステムレベルの「withdrawal」操作として流せるようにする。Shanghai/Capella アップグレードで有効化された。","ko":"검증자의 출금이 비콘 체인에서 실행 레이어로 흘러가도록, 트랜잭션이나 가스 없이 주소에 ETH를 입금하는 새로운 시스템 수준의 \"withdrawal\" 작업을 도입한다. Shanghai/Capella 업그레이드에서 활성화되었다.","zh":"让验证者的提款从信标链流入执行层，作为一种新的系统级“withdrawal”操作，无需交易也无需 gas 即可向地址入账 ETH；已在 Shanghai/Capella 升级中激活。"},"tags":["staking","withdrawals","consensus","core","shanghai"],"explainers":{"en":{"lang":"en","tldr":"Lets validator withdrawals flow from the beacon chain into the execution layer as a new system-level \"withdrawal\" operation that credits ETH to an address without a transaction or gas; activated in the Shanghai/Capella upgrade.","tags":["staking","withdrawals","consensus","core","shanghai"],"related":[3675,4399,7002,7251,6110],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-4895/","markdown":"## What problem does it solve?\n\nAfter the Merge ([EIP-3675](/eip-3675/)) stakers' ETH lived on the beacon chain with no way back into the EVM. Rewards accumulated and exits were possible, but the ETH could not be spent.\n\nEIP-4895 defines how withdrawn ETH crosses from the consensus layer into execution-layer balances. It uses a **push** model: when the consensus layer dequeues a withdrawal, the execution layer must apply it in that block. Nobody has to send a transaction to claim it.\n\n## How it works\n\n- A new payload object, the **withdrawal**, separate from user transactions: `[index, validator_index, address, amount]`. `index` is a global counter, `amount` is in **Gwei** and non-zero.\n- The execution payload gains a `withdrawals` list, and the block header gains `withdrawals_root`, a Merkle-Patricia trie root built the same way as the transactions root.\n- Withdrawals are processed **after** all transactions in the block. Each one simply increases the balance of `address` by `amount × 10^9` wei.\n- This balance increase is unconditional, must not fail, costs no gas and runs **no EVM code**.\n\nActivation is by timestamp: `FORK_TIMESTAMP = 1681338455` (April 2023, the Shanghai execution / Capella consensus upgrade).\n\nWhy not a new transaction type? Withdrawals are initiated by the system, not by users. Keeping them as a separate object avoids interaction with normal transaction processing and simplifies testing and security review. The consensus layer bounds how many withdrawals appear per block, so skipping gas accounting is safe.\n\n## Sample code\n\nReading withdrawals from a block via JSON-RPC (ethers v6):\n\n```ts\nimport { JsonRpcProvider, formatEther } from \"ethers\";\n\nconst provider = new JsonRpcProvider(process.env.RPC_URL);\nconst block = await provider.send(\"eth_getBlockByNumber\", [\"latest\", false]);\n\nconsole.log(\"withdrawalsRoot:\", block.withdrawalsRoot);\nfor (const w of block.withdrawals ?? []) {\n  const wei = BigInt(w.amount) * 10n ** 9n; // amount is in Gwei\n  console.log(`#${BigInt(w.index)} validator ${BigInt(w.validatorIndex)} -\u003e ${w.address}: ${formatEther(wei)} ETH`);\n}\n```\n\n## Things to know\n\n- Withdrawals do not call the recipient. A contract receiving them will not run `receive()` or `fallback()`, and they emit no logs. Track them via the block's `withdrawals` list, not via events.\n- Because a withdrawal is not a transaction, it does not appear in transaction lists or receipts.\n- Which validators withdraw and how much is decided entirely on the consensus layer; this EIP only applies the result.\n- Later upgrades extended staking flows: [EIP-7002](/eip-7002/) lets the withdrawal credentials trigger exits from the execution layer, [EIP-6110](/eip-6110/) moves deposits on-chain and [EIP-7251](/eip-7251/) raises the maximum effective balance.\n"},"ja":{"lang":"ja","tldr":"バリデーターの出金を、ビーコンチェーンから実行レイヤーへ、トランザクションもガスも不要でアドレスに ETH を入金する新しいシステムレベルの「withdrawal」操作として流せるようにする。Shanghai/Capella アップグレードで有効化された。","tags":["staking","withdrawals","consensus","core","shanghai"],"related":[3675,4399,7002,7251,6110],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-4895/","markdown":"## 何を解決するのか\n\nthe Merge（[EIP-3675](/eip-3675/)）の後、ステーカーの ETH はビーコンチェーン上にあり、EVM に戻す手段がありませんでした。報酬は積み上がり、退出も可能でしたが、その ETH を使うことはできませんでした。\n\nEIP-4895 は、引き出された ETH がコンセンサスレイヤーから実行レイヤーの残高へ渡る方法を定義します。**プッシュ**モデルを使います。コンセンサスレイヤーが withdrawal をキューから取り出すと、実行レイヤーはそのブロックで必ずそれを適用しなければなりません。受け取るためにトランザクションを送る必要は誰にもありません。\n\n## 仕組み\n\n- ユーザーのトランザクションとは別の新しいペイロードオブジェクト、**withdrawal**: `[index, validator_index, address, amount]`。`index` はグローバルなカウンター、`amount` は **Gwei** 単位で 0 ではありません。\n- 実行ペイロードに `withdrawals` リストが加わり、ブロックヘッダーに `withdrawals_root` が加わります。これは transactions root と同じ方法で作られる Merkle-Patricia trie のルートです。\n- withdrawal はブロック内のすべてのトランザクションの**後**に処理されます。それぞれ、`address` の残高を `amount × 10^9` wei だけ増やすだけです。\n- この残高の増加は無条件で、失敗してはならず、ガスもかからず、**EVM コードを一切実行しません**。\n\n有効化はタイムスタンプで行われます: `FORK_TIMESTAMP = 1681338455`（2023 年 4 月、実行レイヤーの Shanghai／コンセンサスレイヤーの Capella アップグレード）。\n\nなぜ新しいトランザクションタイプにしないのでしょうか。withdrawal はユーザーではなくシステムによって開始されるためです。別個のオブジェクトにしておくことで、通常のトランザクション処理との相互作用を避け、テストとセキュリティレビューを簡単にできます。コンセンサスレイヤーがブロックあたりの withdrawal の数を制限しているため、ガス計算を省いても安全です。\n\n## サンプルコード\n\nJSON-RPC 経由でブロックから withdrawal を読む（ethers v6）:\n\n```ts\nimport { JsonRpcProvider, formatEther } from \"ethers\";\n\nconst provider = new JsonRpcProvider(process.env.RPC_URL);\nconst block = await provider.send(\"eth_getBlockByNumber\", [\"latest\", false]);\n\nconsole.log(\"withdrawalsRoot:\", block.withdrawalsRoot);\nfor (const w of block.withdrawals ?? []) {\n  const wei = BigInt(w.amount) * 10n ** 9n; // amount is in Gwei\n  console.log(`#${BigInt(w.index)} validator ${BigInt(w.validatorIndex)} -\u003e ${w.address}: ${formatEther(wei)} ETH`);\n}\n```\n\n## 知っておくべきこと\n\n- withdrawal は受取先を呼び出しません。受け取るコントラクトの `receive()` や `fallback()` は実行されず、ログも発行されません。イベントではなく、ブロックの `withdrawals` リストで追跡してください。\n- withdrawal はトランザクションではないため、トランザクション一覧やレシートには現れません。\n- どのバリデーターがいくら出金するかは、完全にコンセンサスレイヤーで決まります。この EIP はその結果を適用するだけです。\n- 後のアップグレードでステーキングの流れが拡張されました。[EIP-7002](/eip-7002/) は withdrawal credentials から実行レイヤー経由で退出を起動できるようにし、[EIP-6110](/eip-6110/) はデポジットをオンチェーンに移し、[EIP-7251](/eip-7251/) は最大有効残高を引き上げます。\n"},"ko":{"lang":"ko","tldr":"검증자의 출금이 비콘 체인에서 실행 레이어로 흘러가도록, 트랜잭션이나 가스 없이 주소에 ETH를 입금하는 새로운 시스템 수준의 \"withdrawal\" 작업을 도입한다. Shanghai/Capella 업그레이드에서 활성화되었다.","tags":["staking","withdrawals","consensus","core","shanghai"],"related":[3675,4399,7002,7251,6110],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-4895/","markdown":"## 어떤 문제를 해결하나요?\n\n머지(the Merge, [EIP-3675](/eip-3675/)) 이후 스테이커의 ETH는 비콘 체인에 있었고 EVM으로 돌아올 방법이 없었습니다. 보상은 쌓였고 퇴출도 가능했지만, 그 ETH를 쓸 수는 없었습니다.\n\nEIP-4895는 인출된 ETH가 합의 레이어에서 실행 레이어 잔액으로 넘어오는 방식을 정의합니다. **푸시** 모델을 사용합니다. 합의 레이어가 출금을 큐에서 꺼내면 실행 레이어는 해당 블록에서 반드시 이를 적용해야 합니다. 이를 받기 위해 누구도 트랜잭션을 보낼 필요가 없습니다.\n\n## 어떻게 동작하나요?\n\n- 사용자 트랜잭션과 별개인 새로운 페이로드 객체 **withdrawal**: `[index, validator_index, address, amount]`. `index`는 전역 카운터이고 `amount`는 **Gwei** 단위이며 0이 아닙니다.\n- 실행 페이로드에 `withdrawals` 목록이 추가되고, 블록 헤더에 `withdrawals_root`가 추가됩니다. 이는 트랜잭션 루트와 같은 방식으로 만들어지는 Merkle-Patricia 트라이 루트입니다.\n- 출금은 블록의 모든 트랜잭션 **이후에** 처리됩니다. 각 출금은 `address`의 잔액을 `amount × 10^9` wei만큼 늘릴 뿐입니다.\n- 이 잔액 증가는 무조건적이고, 실패해서는 안 되며, 가스가 들지 않고, **EVM 코드를 전혀 실행하지 않습니다**.\n\n활성화는 타임스탬프로 이루어집니다: `FORK_TIMESTAMP = 1681338455` (2023년 4월, 실행 레이어 Shanghai / 합의 레이어 Capella 업그레이드).\n\n왜 새로운 트랜잭션 타입이 아닐까요? 출금은 사용자가 아니라 시스템이 시작하기 때문입니다. 별도의 객체로 두면 일반 트랜잭션 처리와의 상호작용을 피하고 테스트와 보안 검토를 단순화할 수 있습니다. 합의 레이어가 블록당 출금 수를 제한하므로 가스 계산을 건너뛰어도 안전합니다.\n\n## 샘플 코드\n\nJSON-RPC로 블록에서 출금 읽기(ethers v6):\n\n```ts\nimport { JsonRpcProvider, formatEther } from \"ethers\";\n\nconst provider = new JsonRpcProvider(process.env.RPC_URL);\nconst block = await provider.send(\"eth_getBlockByNumber\", [\"latest\", false]);\n\nconsole.log(\"withdrawalsRoot:\", block.withdrawalsRoot);\nfor (const w of block.withdrawals ?? []) {\n  const wei = BigInt(w.amount) * 10n ** 9n; // amount is in Gwei\n  console.log(`#${BigInt(w.index)} validator ${BigInt(w.validatorIndex)} -\u003e ${w.address}: ${formatEther(wei)} ETH`);\n}\n```\n\n## 알아둘 점\n\n- 출금은 수신자를 호출하지 않습니다. 이를 받는 컨트랙트는 `receive()`나 `fallback()`을 실행하지 않으며 로그도 발생하지 않습니다. 이벤트가 아니라 블록의 `withdrawals` 목록으로 추적하세요.\n- 출금은 트랜잭션이 아니므로 트랜잭션 목록이나 영수증에 나타나지 않습니다.\n- 어떤 검증자가 얼마를 출금할지는 전적으로 합의 레이어에서 결정됩니다. 이 EIP는 그 결과를 적용할 뿐입니다.\n- 이후 업그레이드가 스테이킹 흐름을 확장했습니다. [EIP-7002](/eip-7002/)는 withdrawal credentials가 실행 레이어에서 퇴출을 트리거하게 하고, [EIP-6110](/eip-6110/)은 예치를 온체인으로 옮기며, [EIP-7251](/eip-7251/)은 최대 유효 잔액을 올립니다.\n"},"zh":{"lang":"zh","tldr":"让验证者的提款从信标链流入执行层，作为一种新的系统级“withdrawal”操作，无需交易也无需 gas 即可向地址入账 ETH；已在 Shanghai/Capella 升级中激活。","tags":["staking","withdrawals","consensus","core","shanghai"],"related":[3675,4399,7002,7251,6110],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-4895/","markdown":"## 它解决什么问题？\n\n合并（the Merge，[EIP-3675](/eip-3675/)）之后，质押者的 ETH 留在信标链上，无法回到 EVM。奖励不断累积，退出也是可能的，但这些 ETH 无法使用。\n\nEIP-4895 定义了提取出的 ETH 如何从共识层进入执行层余额。它采用**推送**模型：当共识层把一笔提款从队列中取出时，执行层必须在该区块中应用它。无需任何人发送交易来领取。\n\n## 它如何运作\n\n- 一种新的负载对象 **withdrawal**，与用户交易分开：`[index, validator_index, address, amount]`。`index` 是全局计数器，`amount` 以 **Gwei** 为单位且非零。\n- 执行负载新增 `withdrawals` 列表，区块头新增 `withdrawals_root`，它是以与交易根相同的方式构建的 Merkle-Patricia 树根。\n- 提款在区块中所有交易**之后**处理。每一笔只是把 `address` 的余额增加 `amount × 10^9` wei。\n- 这种余额增加是无条件的，不得失败，不消耗 gas，也**不运行任何 EVM 代码**。\n\n激活基于时间戳：`FORK_TIMESTAMP = 1681338455`（2023 年 4 月，执行层 Shanghai / 共识层 Capella 升级）。\n\n为什么不用新的交易类型？提款由系统发起，而不是由用户发起。将其作为独立对象，可以避免与普通交易处理产生交互，并简化测试和安全审查。共识层限制了每个区块中出现的提款数量，因此跳过 gas 计算是安全的。\n\n## 示例代码\n\n通过 JSON-RPC 从区块中读取提款（ethers v6）：\n\n```ts\nimport { JsonRpcProvider, formatEther } from \"ethers\";\n\nconst provider = new JsonRpcProvider(process.env.RPC_URL);\nconst block = await provider.send(\"eth_getBlockByNumber\", [\"latest\", false]);\n\nconsole.log(\"withdrawalsRoot:\", block.withdrawalsRoot);\nfor (const w of block.withdrawals ?? []) {\n  const wei = BigInt(w.amount) * 10n ** 9n; // amount is in Gwei\n  console.log(`#${BigInt(w.index)} validator ${BigInt(w.validatorIndex)} -\u003e ${w.address}: ${formatEther(wei)} ETH`);\n}\n```\n\n## 需要注意\n\n- 提款不会调用接收方。接收提款的合约不会运行 `receive()` 或 `fallback()`，也不会产生日志。请通过区块的 `withdrawals` 列表而不是事件来跟踪它们。\n- 由于提款不是交易，它不会出现在交易列表或回执中。\n- 哪些验证者提款以及提多少，完全由共识层决定；这个 EIP 只是应用结果。\n- 后续升级扩展了质押流程：[EIP-7002](/eip-7002/) 允许提款凭证从执行层触发退出，[EIP-6110](/eip-6110/) 将存款移到链上，[EIP-7251](/eip-7251/) 提高了最大有效余额。\n"}},"requiredBy":[4844,6465,7799,8062,8101,8115]}
