Ethereum’s Gas Pricing Reform: A Deep Dive into EIP-8037 and EIP-8038

The Ethereum network is poised for a significant overhaul of its gas pricing mechanism, a critical step aimed at enhancing scalability and ensuring the long-term sustainability of the blockchain. Two Ethereum Improvement Proposals (EIPs), EIP-8037 and EIP-8038, are set to redefine the cost associated with creating and accessing state on the network. These proposals, collectively…

 Avatar

by

8 minutes

Read Time

The Ethereum network is poised for a significant overhaul of its gas pricing mechanism, a critical step aimed at enhancing scalability and ensuring the long-term sustainability of the blockchain. Two Ethereum Improvement Proposals (EIPs), EIP-8037 and EIP-8038, are set to redefine the cost associated with creating and accessing state on the network. These proposals, collectively referred to as the "repricing" initiative, are designed to make gas prices more accurately reflect the computational resources and real-world work each operation entails. This strategic adjustment is a foundational element for future network upgrades, particularly those that involve increasing the overall transaction throughput.

The genesis of this repricing lies in the network’s continuous evolution. The last substantial adjustment to gas prices for state operations occurred in July 2021 with the Berlin hard fork. Since that time, Ethereum’s state—the cumulative data stored on the blockchain—has expanded considerably. This growth, coupled with recent increases in the block gas limit, has accelerated the demand on network resources. The current gas pricing model, therefore, no longer fully aligns with the actual operational costs, creating inefficiencies and limiting the network’s capacity for future expansion. By recalibrating these costs, developers aim to create a more robust economic model that underpins increased transaction throughput, potentially tripling the base throughput of the network.

Understanding the Mechanics of Repricing

At its core, the repricing initiative involves two key EIPs, each addressing a specific aspect of state interaction:

  • EIP-8037: State Creation Gas Cost Increase: This proposal focuses on the gas costs associated with creating new state entries on the Ethereum blockchain. When new data is added or a new contract is deployed, it consumes significant resources. EIP-8037 aims to increase the gas cost for these operations to better reflect the computational burden and storage requirements.
  • EIP-8038: State Access Gas Cost Update: This proposal targets the gas costs for accessing existing state data. Retrieving information from the blockchain, whether by a smart contract or an external user, also incurs computational and I/O costs. EIP-8038 seeks to update these costs to align with the current reality of a larger and more complex Ethereum state.

The new gas pricing schedule has been meticulously derived from a performance target. This target is set to support a roughly threefold increase in the network’s base throughput, a crucial objective for Ethereum as it continues to scale and accommodate a growing user base and expanding decentralized application ecosystem. This strategic adjustment is not merely about increasing costs; it’s about creating a more accurate economic signal that incentivizes efficient resource utilization and paves the way for higher transaction volumes without compromising network stability.

A Look Back: The Berlin Fork and State Growth

The Berlin hard fork, implemented on April 15, 2021, was a significant event in Ethereum’s upgrade roadmap. It introduced several EIPs aimed at improving network efficiency and reducing transaction costs, including EIP-2929. EIP-2929 specifically introduced the concept of "access lists" to reduce the gas cost of smart contract transactions by allowing transactions to declare the state slots they will access beforehand. This was a proactive measure to manage gas costs in anticipation of state growth. However, as the network has continued to mature and adoption has surged, the state has grown beyond the projections at the time of the Berlin fork.

The sheer volume of transactions and smart contract interactions has led to a substantial increase in the size and complexity of Ethereum’s state. This growth has, in turn, increased the computational overhead for node operators who are responsible for maintaining and validating this state. The current gas pricing, established before this accelerated growth, has become increasingly misaligned with the actual resources consumed. This misalignment can lead to economic inefficiencies and, more critically, acts as a bottleneck for future scaling initiatives. The repricing proposed by EIP-8037 and EIP-8038 is therefore a necessary evolutionary step to address these challenges and ensure Ethereum’s continued scalability.

Analyzing the Real-World Impact

To gauge the practical implications of this repricing, historical mainnet transactions have been replayed and analyzed under the new schedule. This rigorous testing reveals that transactions generally fall into four distinct categories concerning their outcome:

  1. No Change: A significant portion of transactions will experience no discernible difference in gas costs or execution. These are typically simple value transfers or contract calls that do not interact with state in a way that is significantly affected by the repricing.
  2. Slightly More Expensive: Some transactions will see a marginal increase in gas costs. This might occur if they involve accessing a moderate amount of state data whose cost has been slightly adjusted.
  3. Significantly More Expensive: A subset of transactions will become considerably more expensive. This category includes operations that heavily rely on state creation or access, where the new pricing structure reflects a more accurate cost.
  4. Failures: Certain transactions, particularly those with hardcoded gas assumptions, are likely to fail under the new pricing. This is the most critical category for developers and users to address.

Contracts that fall into the "Failures" category often exhibit specific characteristics. These include reliance on hardcoded gas stipends, such as the 2,300 gas limit historically provided for Solidity’s transfer() and send() functions, which were designed for simpler times. Other vulnerabilities arise from hardcoded gas values within contract calls, logic that dynamically branches based on the output of the gasleft() function, or the use of presigned transactions with fixed gas limits that do not account for the repriced costs. The Ethereum development team has proactively initiated direct outreach to builders of the most-affected contracts to provide guidance and support.

Identifying and Addressing Actionable Changes

The repricing initiative necessitates specific actions from different stakeholders within the Ethereum ecosystem to ensure a smooth transition and continued network functionality.

For Layer 1 (L1) Contract Maintainers:
Developers and teams maintaining existing L1 smart contracts are strongly advised to assess their code’s potential vulnerability to the repricing. A dedicated tool has been made available on GitHub (https://ethereum.github.io/repricing-impact/affected-contracts.html?schedule=eip-8037) where contract addresses can be queried. This tool provides detailed insights into potential failures, specifying the exact repricing adjustments causing the issues and the distinct failure modes for each contract. This allows developers to pinpoint areas requiring immediate attention and modification.

For Wallet, RPC Infrastructure, and Node Tooling Developers:
Developers building essential components of the Ethereum ecosystem, such as wallets, Remote Procedure Call (RPC) infrastructure, and node tooling, must update their gas estimation logic. The eth_estimateGas RPC method and related functions need to be recalibrated to accurately account for the new gas cost rules. Failure to do so will result in cached gas constants underestimating the actual required gas, leading to transaction failures for users relying on these services. This update is crucial for maintaining a seamless user experience.

For Regular Users:
End-users of the Ethereum network generally do not need to take any direct action. As long as their wallets and the underlying infrastructure they use are updated by developers to reflect the new gas pricing, transactions should continue to function as expected. The onus is on the service providers and developers to ensure compatibility.

A comprehensive report detailing the most-affected entities and contracts has been compiled (https://ethereum.github.io/repricing-impact/entity-report.html?schedule=eip-8038). This report serves as a critical resource for prioritizing outreach and support efforts to key players in the ecosystem who might be significantly impacted by the changes.

The Road Ahead: Scaling Eth for the Future

The repricing of state operations is a fundamental step in Ethereum’s ongoing journey towards enhanced scalability. By ensuring that gas costs accurately reflect the real resources consumed by various operations, the network can safely increase its block gas limits. This, in turn, allows for a higher base throughput, enabling Ethereum to support a greater number of transactions without degrading the performance or stability for node operators. Node operators are the backbone of the decentralized network, and maintaining their operational viability is paramount.

The repricing schedule is currently undergoing testing on devnets, with plans for a rollout to public testnets in the near future, preceding its activation on the mainnet. This phased approach provides ample opportunity for developers and teams to test their applications and infrastructure against the new pricing model. The Ethereum development community strongly encourages all relevant parties to leverage these testing environments to identify and resolve any compatibility issues well in advance of the mainnet launch.

Similar to previous network upgrades, changes that directly impact users will be communicated transparently through official blog channels and various community platforms. Developers and interested parties are encouraged to engage in discussions and seek clarification through dedicated channels. The Ethereum R&D Discord server, specifically the "evm-pricing" channel, and the associated Telegram group offer direct lines of communication for questions and feedback. Furthermore, teams closely aligned with the protocol roadmap are urged to participate in the AllCoreDevs (ACD) process and follow the discussion threads for EIP-8037 and EIP-8038 on Ethereum Magicians. These forums are vital for collaborative development and ensuring a well-coordinated and successful network evolution.

The implementation of EIP-8037 and EIP-8038 represents a maturing of Ethereum’s economic model, a necessary evolution to support its growing ambitions as a global decentralized computing platform. By aligning gas costs with the true cost of operations, Ethereum is laying a more sustainable and scalable foundation for the future, paving the way for increased adoption and innovation in the decentralized space.

About the Author

About the Author

Easy WordPress Websites Builder: Versatile Demos for Blogs, News, eCommerce and More – One-Click Import, No Coding! 1000+ Ready-made Templates for Stunning Newspaper, Magazine, Blog, and Publishing Websites.

BlockSpare — News, Magazine and Blog Addons for (Gutenberg) Block Editor

Search the Archives

Access over the years of investigative journalism and breaking reports