{"eip":4863,"title":"Beacon chain push withdrawals","description":"Support validator withdrawals from the beacon chain to the EVM via a new \"push-style\" transaction type.","authors":["Alex Stokes (@ralexstokes)","Danny Ryan (@djrtwo)"],"status":"Stagnant","type":"Standards Track","category":"Core","created":"2022-02-28","discussionsTo":"https://ethereum-magicians.org/t/eip-4863-beacon-chain-push-withdrawals/8465","repo":"EIPs","label":"EIP-4863","officialUrl":"https://eips.ethereum.org/EIPS/eip-4863","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-4863.md","url":"https://eips.huatuo.xyz/eip-4863/","tldr":{"en":"An early design for staking withdrawals that would have pushed ETH from the beacon chain into the EVM with a new gas-free withdrawal transaction type; later replaced by EIP-4895's withdrawal operations.","ja":"ステーキング出金の初期設計。ガス不要の新しい出金トランザクションタイプで、ビーコンチェーンから EVM へ ETH を押し込むはずだった。後に EIP-4895 の withdrawal operations に置き換えられた。","ko":"스테이킹 출금의 초기 설계. 가스가 필요 없는 새 출금 트랜잭션 타입으로 비콘 체인의 ETH를 EVM으로 밀어 넣을 계획이었으며, 이후 EIP-4895의 출금 오퍼레이션으로 대체되었다.","zh":"质押提款的早期设计：通过一种无需 gas 的新提款交易类型，把 ETH 从信标链推入 EVM；后来被 EIP-4895 的提款操作取代。"},"tags":["withdrawals","staking","beacon-chain","transactions","core"],"explainers":{"en":{"lang":"en","tldr":"An early design for staking withdrawals that would have pushed ETH from the beacon chain into the EVM with a new gas-free withdrawal transaction type; later replaced by EIP-4895's withdrawal operations.","tags":["withdrawals","staking","beacon-chain","transactions","core"],"related":[4895,2718,4788],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-4863/","markdown":"## What problem does it solve?\n\nAfter the Merge, validators' staked ETH and rewards lived on the beacon chain (consensus layer) with no way to move back to normal execution-layer accounts. Some mechanism had to bring that ETH into the EVM.\n\nThere are two broad options:\n\n- **Pull**: expose beacon chain data to the EVM (e.g. with [EIP-4788](/eip-4788/)) and let users claim withdrawals from a contract, paying gas.\n- **Push**: the protocol credits balances automatically when withdrawals are dequeued on the beacon chain.\n\nEIP-4863 chose push. It is more involved in the core protocol but integrates a critical feature directly and gives validators automatic, gas-free withdrawals.\n\n## How it works\n\nThe EIP adds a new [EIP-2718](/eip-2718/) transaction type, `WITHDRAWAL_TX_TYPE = 0x3`.\n\n- **Payload**: `RLP([index, address, amount])`. `index` is a 64-bit ID that uniquely labels the withdrawal, `address` is the execution-layer recipient, and `amount` is in wei. All values come from the consensus layer.\n- **Processing**: increase `address`'s balance by `amount`. That's it: no EVM code runs, the balance change is unconditional and must not fail, and there is no gas cost.\n- **Block validity**: withdrawal transactions must come after all other transactions in a block. Otherwise the block is invalid. This lets the beacon chain check them with a simple linear scan.\n\nWhy no gas? The consensus layer limits how many withdrawals reach each block, so the cost to the execution layer is negligible. Why only balance updates? Running general EVM code could fail, which would complicate beacon chain accounting.\n\n## Sample code\n\nIllustrative encoding of a withdrawal transaction under this proposal (pseudocode):\n\n```python\nimport rlp\n\nWITHDRAWAL_TX_TYPE = 0x03\n\ndef encode_withdrawal_tx(index: int, address: bytes, amount_wei: int) -\u003e bytes:\n    assert 0 \u003c= index \u003c 2**64 and len(address) == 20\n    payload = rlp.encode([index, address, amount_wei])\n    return bytes([WITHDRAWAL_TX_TYPE]) + payload   # EIP-2718 envelope\n\ndef apply_withdrawal(state, index, address, amount_wei):\n    state.balance[address] += amount_wei           # no EVM call, no gas, cannot fail\n```\n\n## Things to know\n\n- Status: **Stagnant**. Its fork timestamp was left TBD and it was never deployed.\n- It was superseded by [EIP-4895](/eip-4895/), which keeps the push model but represents withdrawals as a separate list of system-level *operations* in the block body rather than as transactions. EIP-4895 is what went live in the Shanghai/Capella upgrade.\n- Because withdrawals in either design do not run EVM code, a contract receiving them is credited without its `receive` function being called.\n- The spec flagged this consensus-to-execution ETH transfer as needing very careful security review, since nothing like it existed in the EVM before.\n"},"ja":{"lang":"ja","tldr":"ステーキング出金の初期設計。ガス不要の新しい出金トランザクションタイプで、ビーコンチェーンから EVM へ ETH を押し込むはずだった。後に EIP-4895 の withdrawal operations に置き換えられた。","tags":["withdrawals","staking","beacon-chain","transactions","core"],"related":[4895,2718,4788],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-4863/","markdown":"## 何を解決するのか\n\nThe Merge の後、バリデーターのステーク済み ETH と報酬はビーコンチェーン（コンセンサスレイヤー）上にあり、通常の実行レイヤーのアカウントへ戻す手段がありませんでした。その ETH を EVM に取り込む何らかの仕組みが必要でした。\n\n大きく 2 つの選択肢があります。\n\n- **Pull**: ビーコンチェーンのデータを EVM に公開し（例: [EIP-4788](/eip-4788/)）、ユーザーがガスを払ってコントラクトから出金を請求する。\n- **Push**: ビーコンチェーンで出金がキューから取り出されたときに、プロトコルが自動で残高を加算する。\n\nEIP-4863 は push を選びました。コアプロトコルの側はより複雑になりますが、重要な機能を直接組み込み、バリデーターに自動でガス不要の出金を提供します。\n\n## 仕組み\n\nこの EIP は、新しい [EIP-2718](/eip-2718/) トランザクションタイプ `WITHDRAWAL_TX_TYPE = 0x3` を追加します。\n\n- **ペイロード**: `RLP([index, address, amount])`。`index` は出金を一意に識別する 64 ビットの ID、`address` は実行レイヤーの受取先、`amount` は wei 単位です。値はすべてコンセンサスレイヤーから来ます。\n- **処理**: `address` の残高を `amount` だけ増やします。それだけです。EVM コードは実行されず、残高の変更は無条件で失敗してはならず、ガスコストもありません。\n- **ブロックの有効性**: 出金トランザクションは、ブロック内の他のすべてのトランザクションより後ろに置かなければなりません。そうでないブロックは無効です。これにより、ビーコンチェーンは単純な線形スキャンでそれらを検査できます。\n\nなぜガス不要なのか。コンセンサスレイヤーが各ブロックに入る出金の数を制限しているため、実行レイヤーへのコストは無視できるほど小さいからです。なぜ残高の更新だけなのか。汎用の EVM コードを実行すると失敗しうるため、ビーコンチェーンの会計が複雑になるからです。\n\n## サンプルコード\n\nこの提案における出金トランザクションのエンコード例（疑似コード）:\n\n```python\nimport rlp\n\nWITHDRAWAL_TX_TYPE = 0x03\n\ndef encode_withdrawal_tx(index: int, address: bytes, amount_wei: int) -\u003e bytes:\n    assert 0 \u003c= index \u003c 2**64 and len(address) == 20\n    payload = rlp.encode([index, address, amount_wei])\n    return bytes([WITHDRAWAL_TX_TYPE]) + payload   # EIP-2718 envelope\n\ndef apply_withdrawal(state, index, address, amount_wei):\n    state.balance[address] += amount_wei           # no EVM call, no gas, cannot fail\n```\n\n## 知っておくべきこと\n\n- ステータス: **Stagnant**。フォークのタイムスタンプは TBD のままで、デプロイされることはありませんでした。\n- [EIP-4895](/eip-4895/) に置き換えられました。EIP-4895 は push モデルを維持しつつ、出金をトランザクションではなく、ブロックボディ内のシステムレベルの*オペレーション*の別リストとして表現します。Shanghai/Capella アップグレードで稼働したのは EIP-4895 です。\n- どちらの設計でも出金は EVM コードを実行しないため、受け取るコントラクトは `receive` 関数が呼ばれないまま残高が加算されます。\n- 仕様は、このコンセンサスから実行レイヤーへの ETH 移転について、EVM にこれまで同様のものがなかったため、非常に慎重なセキュリティレビューが必要だと指摘していました。\n"},"ko":{"lang":"ko","tldr":"스테이킹 출금의 초기 설계. 가스가 필요 없는 새 출금 트랜잭션 타입으로 비콘 체인의 ETH를 EVM으로 밀어 넣을 계획이었으며, 이후 EIP-4895의 출금 오퍼레이션으로 대체되었다.","tags":["withdrawals","staking","beacon-chain","transactions","core"],"related":[4895,2718,4788],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-4863/","markdown":"## 어떤 문제를 해결하나요?\n\nThe Merge 이후 검증자의 스테이킹된 ETH와 보상은 비콘 체인(합의 계층)에 있었고, 일반 실행 계층 계정으로 되돌릴 방법이 없었습니다. 그 ETH를 EVM으로 가져오는 어떤 메커니즘이 필요했습니다.\n\n크게 두 가지 선택지가 있습니다.\n\n- **Pull**: 비콘 체인 데이터를 EVM에 노출하고(예: [EIP-4788](/eip-4788/)) 사용자가 가스를 내고 컨트랙트에서 출금을 청구하게 한다.\n- **Push**: 비콘 체인에서 출금이 대기열에서 나올 때 프로토콜이 자동으로 잔액을 입금한다.\n\nEIP-4863은 push를 택했습니다. 코어 프로토콜 쪽은 더 복잡하지만, 핵심 기능을 직접 통합하고 검증자에게 자동이며 가스가 필요 없는 출금을 제공합니다.\n\n## 어떻게 동작하나요?\n\n이 EIP는 새로운 [EIP-2718](/eip-2718/) 트랜잭션 타입 `WITHDRAWAL_TX_TYPE = 0x3`을 추가합니다.\n\n- **페이로드**: `RLP([index, address, amount])`. `index`는 출금을 고유하게 식별하는 64비트 ID, `address`는 실행 계층의 수신자, `amount`는 wei 단위입니다. 모든 값은 합의 계층에서 옵니다.\n- **처리**: `address`의 잔액을 `amount`만큼 늘립니다. 그게 전부입니다. EVM 코드는 실행되지 않고, 잔액 변경은 무조건적이며 실패해서는 안 되고, 가스 비용도 없습니다.\n- **블록 유효성**: 출금 트랜잭션은 블록의 다른 모든 트랜잭션 뒤에 와야 합니다. 그렇지 않으면 블록은 유효하지 않습니다. 덕분에 비콘 체인이 단순한 선형 스캔으로 이를 검사할 수 있습니다.\n\n왜 가스가 없을까요? 합의 계층이 블록마다 들어오는 출금 수를 제한하므로 실행 계층의 비용은 무시할 만하기 때문입니다. 왜 잔액 갱신만 할까요? 범용 EVM 코드를 실행하면 실패할 수 있고, 그러면 비콘 체인 회계가 복잡해지기 때문입니다.\n\n## 샘플 코드\n\n이 제안에 따른 출금 트랜잭션 인코딩 예시(의사 코드):\n\n```python\nimport rlp\n\nWITHDRAWAL_TX_TYPE = 0x03\n\ndef encode_withdrawal_tx(index: int, address: bytes, amount_wei: int) -\u003e bytes:\n    assert 0 \u003c= index \u003c 2**64 and len(address) == 20\n    payload = rlp.encode([index, address, amount_wei])\n    return bytes([WITHDRAWAL_TX_TYPE]) + payload   # EIP-2718 envelope\n\ndef apply_withdrawal(state, index, address, amount_wei):\n    state.balance[address] += amount_wei           # no EVM call, no gas, cannot fail\n```\n\n## 알아둘 점\n\n- 상태: **Stagnant**. 포크 타임스탬프는 TBD로 남았고 배포된 적이 없습니다.\n- [EIP-4895](/eip-4895/)로 대체되었습니다. EIP-4895는 push 모델을 유지하되 출금을 트랜잭션이 아니라 블록 본문의 시스템 수준 *오퍼레이션* 별도 목록으로 표현합니다. Shanghai/Capella 업그레이드에서 실제로 적용된 것은 EIP-4895입니다.\n- 두 설계 모두 출금이 EVM 코드를 실행하지 않으므로, 출금을 받는 컨트랙트는 `receive` 함수가 호출되지 않은 채 입금됩니다.\n- 명세는 이 합의 계층에서 실행 계층으로의 ETH 이전이, 이전에 EVM에 비슷한 것이 없었기 때문에 매우 신중한 보안 검토가 필요하다고 지적했습니다.\n"},"zh":{"lang":"zh","tldr":"质押提款的早期设计：通过一种无需 gas 的新提款交易类型，把 ETH 从信标链推入 EVM；后来被 EIP-4895 的提款操作取代。","tags":["withdrawals","staking","beacon-chain","transactions","core"],"related":[4895,2718,4788],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-4863/","markdown":"## 它解决什么问题？\n\n合并（The Merge）之后，验证者质押的 ETH 和奖励都在信标链（共识层）上，无法转回普通的执行层账户。需要某种机制把这些 ETH 带入 EVM。\n\n大致有两种选择：\n\n- **拉取（Pull）**：把信标链数据暴露给 EVM（例如通过 [EIP-4788](/eip-4788/)），由用户支付 gas 从合约中领取提款。\n- **推送（Push）**：当提款在信标链上出队时，由协议自动为余额入账。\n\nEIP-4863 选择了推送。它在核心协议层面更复杂，但直接集成了一项关键功能，并让验证者获得自动、免 gas 的提款。\n\n## 它如何运作\n\n该 EIP 新增了一种 [EIP-2718](/eip-2718/) 交易类型，`WITHDRAWAL_TX_TYPE = 0x3`。\n\n- **载荷**：`RLP([index, address, amount])`。`index` 是唯一标识该提款的 64 位 ID，`address` 是执行层的接收方，`amount` 以 wei 为单位。所有值都来自共识层。\n- **处理**：把 `address` 的余额增加 `amount`。仅此而已：不运行任何 EVM 代码，余额变更是无条件的且不得失败，也没有 gas 成本。\n- **区块有效性**：提款交易必须排在区块中所有其他交易之后，否则区块无效。这让信标链可以通过简单的线性扫描来检查它们。\n\n为什么不需要 gas？共识层限制了每个区块中提款的数量，所以对执行层的成本可以忽略不计。为什么只更新余额？运行通用的 EVM 代码可能失败，这会使信标链的记账变得复杂。\n\n## 示例代码\n\n按该提案对提款交易进行编码的示意（伪代码）：\n\n```python\nimport rlp\n\nWITHDRAWAL_TX_TYPE = 0x03\n\ndef encode_withdrawal_tx(index: int, address: bytes, amount_wei: int) -\u003e bytes:\n    assert 0 \u003c= index \u003c 2**64 and len(address) == 20\n    payload = rlp.encode([index, address, amount_wei])\n    return bytes([WITHDRAWAL_TX_TYPE]) + payload   # EIP-2718 envelope\n\ndef apply_withdrawal(state, index, address, amount_wei):\n    state.balance[address] += amount_wei           # no EVM call, no gas, cannot fail\n```\n\n## 需要注意\n\n- 状态：**Stagnant**。其分叉时间戳一直是 TBD，从未部署。\n- 它被 [EIP-4895](/eip-4895/) 取代。EIP-4895 保留了推送模型，但把提款表示为区块体中独立的系统级*操作*列表，而不是交易。上线于 Shanghai/Capella 升级的是 EIP-4895。\n- 由于两种设计中的提款都不运行 EVM 代码，接收提款的合约会在其 `receive` 函数不被调用的情况下被入账。\n- 规范指出，这种从共识层到执行层的 ETH 转移需要非常仔细的安全审查，因为 EVM 中此前从未有过类似机制。\n"}}}
