Introduction
Hi, I'm cardene, a software engineer and technical writer focused on blockchain and AI.
I've also authored Japanese technical books on specification-driven development with LLMs and decentralized application (DApp) development.
I also build and publish a variety of tools, libraries, and open-source projects.
EIP-4895 introduces a system-level operation that pushes validator withdrawals from the Beacon Chain to Ethereum's execution layer.
This article explains the proposal, adding context to the original specification.
For other articles about EIPs, see the proposal index.
Overview
Two important components of Ethereum are the Beacon Chain and the EVM (Ethereum Virtual Machine). The Beacon Chain manages the proof-of-stake (PoS) consensus mechanism introduced as part of the upgrade historically called Ethereum 2.0. The EVM, by contrast, is the environment in which Ethereum smart contracts execute.
The system-level operation supports validator withdrawals that are pushed from the Beacon Chain to the execution layer. Validators help secure Ethereum by proposing blocks and attesting to their validity.
The process works as follows.
-
Validator withdrawals
- When the conditions for a partial or full withdrawal on the Beacon Chain are satisfied, validators can receive their stake and/or rewards. Eligibility follows consensus-layer rules rather than simply spending a certain amount of time supporting the network.
-
System-level operation
- The Beacon Chain supplies an operation that unconditionally increases the balance of a designated recipient on the execution layer.
- Validators can thereby receive withdrawn stake and rewards directly at their configured Ethereum withdrawal address.
-
Push withdrawals
- Here, push means that the Beacon Chain actively supplies withdrawals to the execution layer.
- The recipient does not need to submit a separate execution-layer transaction to claim an eligible withdrawal. This automates the process and reduces overhead. A full withdrawal may still require the validator to initiate an exit, subject to the applicable consensus rules.
The system simplifies the receipt of rewards and stake. It also improves interoperability between the Beacon Chain and the EVM, making Ethereum more efficient and easier to use.
Beacon Chain
The Beacon Chain was a core component of the network upgrade historically known as Ethereum 2.0. Its primary purpose was to enable Ethereum's transition from proof of work (PoW) to proof of stake (PoS).
Proof of Work (PoW) vs. Proof of Stake (PoS)
Proof of Work (PoW)
Miners contribute to the network by performing computational work to produce new blocks. This process requires substantial computing power and energy.
Proof of Stake (PoS)
Validators commit cryptocurrency as stake and participate in block production and validation. PoS consumes substantially less energy than PoW.
The Role of the Beacon Chain
Consensus Layer
The Beacon Chain manages Ethereum's consensus mechanism. Validators propose new blocks and attest to the validity of other blocks, helping maintain network security and correctness.
Scalability
The original Ethereum roadmap envisioned combining the Beacon Chain with sharding to improve transaction throughput and network scalability. Ethereum's scaling roadmap has since evolved toward rollups and data availability.
Lower Energy Consumption
Because PoS requires far less energy than PoW, the transition greatly reduces Ethereum's environmental impact.
Characteristics of the Beacon Chain
Validator Participation
Network participants stake ETH to become validators and contribute to the network's operation. Validators earn rewards for performing their duties correctly, while misbehavior can lead to penalties or slashing. Not all missed duties constitute slashable offenses.
Decentralization and Security
PoS is intended to support a decentralized and secure network, reduce reliance on centralized control, and maintain the health of the system.
The introduction of the Beacon Chain was part of Ethereum's transition toward a more sustainable and scalable blockchain.
Motivation
This Ethereum Improvement Proposal concerns how validator withdrawals originating on the Beacon Chain are incorporated into Ethereum's execution state.
In a push-based architecture, a withdrawal should be processed by the execution layer as soon as it is dequeued from the consensus layer. This differs from a pull-based approach in which a recipient actively claims funds on the execution layer.
The proposal represents withdrawals as a new kind of object in the execution payload, called an operation. This separates withdrawal processing from ordinary user-level transactions.
Although implementing a separate object requires more work than introducing another transaction type, it establishes a clear boundary between system-level operations and user transactions. Keeping system concerns separate from user data reduces unintended interactions and simplifies testing, which supports security.
The push-based design is also more involved at the core protocol level than a pull-based alternative. Its advantage is that this important functionality is integrated more closely into the protocol itself.
EIP-4895 provides a mechanism for transferring Beacon Chain withdrawals to the execution layer. It aims to process eligible withdrawals efficiently and deliver rewards without a separate claim transaction. Keeping system-level operations separate from ordinary transactions also helps maintain security and consistency.
Specification
The specification defines when execution clients must adopt the change. The relevant constant, FORK_TIMESTAMP, specifies an execution timestamp expressed as Unix time.
Its value is 1681338455. At and after this timestamp, execution clients must implement the extensions to payload validation and processing described by EIP-4895. The new execution-layer rules apply from that point.
The timestamp table alone does not enumerate the extensions. Such protocol upgrades can involve new transaction types, validation rules, and security changes, although EIP-4895 specifically introduces a separate withdrawal operation rather than a new transaction type.
| constants | value | units |
|---|---|---|
| FORK_TIMESTAMP | 1681338455 |
The table assigns 1681338455 to FORK_TIMESTAMP. The units column is blank; the timestamp is measured in seconds since the Unix epoch. EIP-4895 was activated on Ethereum mainnet in the Shanghai/Capella upgrade in April 2023.
System-Level Operation: Withdrawal
The proposal defines a new payload-level object called a withdrawal. It describes a withdrawal validated by the consensus layer. Although syntactically similar to a user-level transaction, a withdrawal belongs to a different domain.
A withdrawal carries the following information from the consensus layer.
Index
A monotonically increasing uint64 index starting at 0. It increases by 1 for each withdrawal and uniquely identifies that withdrawal.
Validator Index
The uint64 index of the corresponding validator on the consensus layer.
Recipient Address
The address receiving the withdrawn ether, represented by a 20-byte value.
Amount
A nonzero amount of ether represented as a uint64 in Gwei (one billion wei).
The withdrawal index is a global counter across the entire sequence of withdrawals.
The withdrawal object is serialized as an RLP (Recursive Length Prefix) list with the schema [index, validator_index, address, amount].
This mechanism provides a way for Ethereum validators to receive withdrawn funds. Withdrawals validated on the consensus layer are represented directly and transparently on the execution layer.
New Execution Payload Field: Withdrawals
The specification adds a field called withdrawals to the execution payload. The field contains an RLP list of withdrawal objects. RLP is a standard Ethereum serialization format.
Each withdrawal is represented as a list of four elements.
index- A monotonically increasing
uint64index beginning at0, serving as the withdrawal's unique identifier.
- A monotonically increasing
validator_index- The
uint64index of the corresponding consensus-layer validator.
- The
address- The recipient's Ethereum address, represented by a
20-byte value.
- The recipient's Ethereum address, represented by a
amount- The nonzero
uint64amount of ether to withdraw, denominated inGwei(one billion wei).
- The nonzero
For example, two withdrawal objects, withdrawal_0 and withdrawal_1, are collected in the withdrawals list. This field is encoded after the existing fields and forms part of the execution payload body.
In the proposal's RLP representation, execution_payload_rlp consists of the header, transactions, an empty ommers list (EIP-3675 requires the corresponding ommers values to be fixed), and withdrawals.
The execution_payload_body_rlp list contains the transactions, the empty list, and withdrawals.
Including withdrawal information in the execution payload lets the execution layer process withdrawals directly, efficiently, and transparently.
New Execution Payload Header Field: Withdrawals Root
A new field called the withdrawals root is added to the execution payload header to commit to the withdrawals in that payload.
The commitment is constructed in the same way as the transaction root in the existing header. Each withdrawal is inserted into a Merkle-Patricia trie using its position in the payload's withdrawal list as the key, not its global withdrawal index.
The function compute_trie_root_from_indexed_data computes the trie root for the supplied data. Items are enumerated by their list indices and inserted into the trie. The resulting 32-byte root is stored as withdrawals_root and commits to the entire withdrawal list.
The execution payload header is extended to include withdrawals_root, allowing the complete list of withdrawals in the payload to be committed to the header.
The original article lists the fields parent_hash, coinbase, state_root, txs_root (transaction root), receipts_root, logs_bloom, number (block number), gas_limit, gas_used, timestamp, extradata, prev_randao, base_fee_per_gas, and the new withdrawals_root in the RLP-encoded header. This abbreviated list omits legacy fixed fields; consult the specification for the full encoding.
The trie-root calculation and the header commitment improve payload integrity and verifiability, helping make withdrawal processing reliable and transparent. For field names and fixed values related to EIP-3675 and EIP-4399, refer to those proposals.
For more on EIP-4399, see the following article.
[EIP-4399] Replacing the DIFFICULTY Opcode with PREVRANDAO
Execution Payload Validity
Assuming an execution payload is well-formed, execution clients must perform an additional validation check. The expected withdrawals_root derived from the payload's withdrawal list must match the value in the header.
Execution payload validity concerns the checks applied when the execution layer processes transactions and other data such as withdrawals. An execution payload contains the execution-related data for a block, including its transactions and withdrawal list.
A well-formed payload follows the format prescribed by Ethereum's protocol. For example, transaction data and withdrawal objects must have the correct structure.
Additional validation goes beyond checking data formats: the data must also satisfy the relevant protocol rules. Transaction signatures must be valid where applicable, and withdrawals must correspond to the withdrawals determined by the consensus layer. The latter eligibility check is a consensus-layer responsibility; the execution-layer check introduced here verifies the withdrawal-list commitment.
These checks prevent invalid transactions or data from being accepted and help maintain the security and correctness of Ethereum. Execution-client validation is an essential part of preserving network integrity and protecting users' assets.
Specifically, the value in execution_payload_header.withdrawals_root must equal the result of compute_trie_root_from_indexed_data(execution_payload.withdrawals).
The function calculates the trie root from the supplied list. The root is a cryptographic commitment to the structure and contents of that list.
Verifying that the payload contains the withdrawal data corresponding to the committed root detects inconsistencies or tampering with the list and improves the reliability of processing.
State Transition
The withdrawals in an execution payload are processed after user-level transactions have been applied.
For each withdrawal in the payload's withdrawals list, the implementation increases the specified address's balance by the specified amount.
Withdrawal amounts are denominated in Gwei, whereas Ethereum account balances are denominated in wei. The amount must therefore be converted from Gwei to wei (1 Gwei equals one billion wei).
The balance increase is unconditional and must not fail. It has no associated gas cost, so withdrawal processing does not incur an additional transaction fee.
This process allows validators to receive withdrawn funds, including rewards earned for their Beacon Chain duties. The funds are reflected directly in the designated account's balance on the execution layer. Reliable receipt of rewards supports the incentives that underpin Ethereum's operation and security.
Rationale
Why Not Introduce a New Transaction Type?
A withdrawal operation has semantics distinct from existing EVM transaction types. It is initiated by the system rather than by an end user. A separate object type isolates withdrawal processing from ordinary EVM execution and simplifies testing and security review.
Why Is There No Gas Cost for Withdrawals?
The consensus layer limits the maximum number of withdrawals that can reach the execution layer in a payload.
This bound is selected to keep the cost of processing withdrawals negligible relative to overall payload execution. It covers both computational costs (a small number of state balance updates) and storage and networking costs. The proposal's parameters were estimated to add only about 1% to the average payload size at the time.
Why Only Balance Updates Rather Than General EVM Execution?
More general execution would introduce the possibility of failure and complicate accounting on the Beacon Chain. The proposal chooses a path that provides most of the benefits of withdrawals at minimal complexity.
EIP-4895 is designed to process withdrawals simply and efficiently. Introducing a separate object type distinguishes withdrawals from ordinary transaction processing, supporting system security and reliability. The absence of a gas charge further simplifies the process and reduces the burden on recipients.
Security Considerations
Validation of withdrawals on the consensus layer is critical to ensuring that the correct amount of ETH is returned to the execution layer. Withdrawals approved by the Beacon Chain must be accurately reflected in Ethereum's execution state.
Before EIP-4895, this was a new kind of value transfer from the consensus layer to the execution layer with no equivalent mechanism in ordinary EVM transaction processing.
Introducing such a mechanism requires careful security analysis. Strict validation must prevent unauthorized or incorrect withdrawals from affecting execution state. Consensus-layer validation is therefore an essential step in ensuring that ETH is transferred correctly and securely.
To protect the process, data must be communicated accurately between the two layers, and withdrawals must occur only when the consensus-layer conditions are met. Potential new attack vectors introduced by this operation must also be examined carefully.
Citation
Alex Stokes (@ralexstokes), Danny Ryan (@djrtwo), "EIP-4895: Beacon chain push withdrawals as operations," Ethereum Improvement Proposals, no. 4895, March 2022. [Online serial]. Available: https://eips.ethereum.org/EIPS/eip-4895.
Conclusion
EIP-4895 defines system-level operations that push Beacon Chain validator withdrawals into Ethereum's execution state.
For questions about the article, feel free to contact the author on Twitter.
The author also publishes articles on the following platforms.


