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

The Ethereum network is poised for a significant transformation in its gas pricing mechanism, with the upcoming implementation of two Ethereum Improvement Proposals (EIPs): EIP-8037 and EIP-8038. These proposals aim to recalibrate the cost associated with creating and accessing state on the blockchain, ensuring that gas prices more accurately reflect the computational resources and storage…

 Avatar

by

9 minutes

Read Time

The Ethereum network is poised for a significant transformation in its gas pricing mechanism, with the upcoming implementation of two Ethereum Improvement Proposals (EIPs): EIP-8037 and EIP-8038. These proposals aim to recalibrate the cost associated with creating and accessing state on the blockchain, ensuring that gas prices more accurately reflect the computational resources and storage operations each transaction entails. This initiative is a critical step towards enhancing Ethereum’s scalability and sustainability, paving the way for future increases in transaction throughput without compromising network stability.

Background: The Evolving Landscape of Ethereum’s State Costs

The last substantial adjustment to gas prices for state operations occurred during the Berlin fork in 2021. At that time, Ethereum’s state – the collective data that defines the current status of all accounts and smart contracts – was considerably smaller than it is today. Since then, the network has experienced a dramatic expansion of its state, a phenomenon further accelerated by recent increases in the block gas limit. This growth means that certain operations, particularly those involving the creation or retrieval of data within the blockchain’s state, have become more resource-intensive than their gas costs currently reflect.

The principle behind this repricing is straightforward: to ensure that the economic incentives for network participants align with the actual operational costs. When gas prices do not accurately mirror the work required, it can lead to inefficiencies, potential network congestion, and vulnerabilities. By adjusting these costs, Ethereum aims to create a more robust and predictable environment for developers and users alike. This repricing is not an isolated event but a foundational requirement for continued network evolution, specifically for enabling further increases in the block gas limit, which directly impacts the network’s transaction processing capacity. The proposed new gas schedule is designed to support a theoretical threefold increase in base throughput, a substantial leap forward for the scalability of the Ethereum ecosystem.

The Technical Rationale: EIP-8037 and EIP-8038 Explained

EIP-8037, titled "State Creation Gas Cost Increase," focuses on adjusting the gas fees associated with the creation of new state entries. This includes actions like creating new accounts, deploying new smart contracts, or initiating new storage slots within existing contracts. As the Ethereum network has grown, the cost and complexity of managing these new entries have increased. EIP-8037 seeks to bring the gas cost of these operations more in line with the actual computational and storage overhead they impose on the network’s nodes.

Complementing this, EIP-8038, "State Access Gas Cost Update," addresses the cost of reading and accessing existing data within the Ethereum state. This encompasses operations such as reading account balances, checking storage values, or querying contract code. The increasing size of the Ethereum state means that accessing data can require more computational effort from node operators, especially as the state grows and becomes more fragmented across the distributed network. EIP-8038 aims to reflect this increased cost accurately in the gas pricing model.

Together, these two EIPs create a more comprehensive and equitable gas pricing structure. The synergy between them is crucial: a more accurate reflection of the cost of both creating and accessing state is a prerequisite for safely raising the block gas limit. This ensures that as the network’s capacity expands, the underlying economic incentives remain aligned with the network’s operational reality, preventing the kind of inefficiencies that could arise from an artificially low cost of state operations. The new schedule, derived from extensive performance analysis and targeting a significant increase in base throughput, represents a carefully considered evolution of Ethereum’s economic layer.

Analyzing the Impact: A Multi-faceted Outcome

To understand the practical implications of these repricing changes, researchers have replayed historical mainnet transactions under the new gas cost schedule. This analysis categorizes transactions into four primary outcomes:

  • No change: A significant portion of transactions will remain unaffected by the repricing. These are typically operations that are already priced efficiently or whose gas costs are not substantially impacted by the new schedule. This indicates that the core functionality of many smart contracts and user interactions will continue without interruption.
  • Slight increase in gas cost: Some transactions will experience a modest increase in their gas expenditure. This suggests that while the underlying operations are affected, the repricing is not so drastic as to render these transactions prohibitively expensive. These increases are likely to be absorbed by users through minor adjustments in transaction fees.
  • Significant increase in gas cost: A subset of transactions will see a more substantial rise in gas costs. This outcome is expected for operations that have historically been underpriced relative to their actual resource consumption. Developers and users interacting with these specific functionalities will need to be aware of the increased gas requirements.
  • Transactions fail: The most critical outcome is that some transactions will now fail under the new pricing model. This occurs when the gas cost of an operation exceeds the gas limit set for that transaction. This category is of particular concern and requires immediate attention from affected parties.

The transactions falling into the "fail" category are often those that rely on specific, hardcoded gas assumptions within their logic. This can include:

  • Fixed stipends: Smart contracts that allocate a predetermined amount of gas for certain operations, such as the 2,300 gas stipend traditionally used by Solidity’s transfer() and send() functions for basic Ether transfers. While these functions are intended for simple transfers, the repricing might make them insufficient if the underlying state operations become more costly.
  • Hardcoded gas values in calls: Contracts that make external calls to other contracts with a fixed gas limit embedded in the code. If the actual gas required by the called contract’s execution under the new schedule exceeds this hardcoded limit, the call will fail.
  • Logic based on gasleft(): Smart contracts that dynamically adjust their behavior based on the amount of gas remaining during execution. Changes in the cost of underlying operations could alter the gasleft() values in unexpected ways, leading to different execution paths and potential failures.
  • Presigned transactions with fixed gas limits: Transactions that have been signed off-chain with a specific gas limit. If the actual cost of executing these transactions on-chain, after the repricing, exceeds their pre-set gas limit, they will revert.

Direct engagement with developers and projects most likely to be affected by these changes is already underway. This proactive outreach aims to provide them with the necessary information and support to adapt their contracts and applications before the mainnet activation.

Actionable Steps for the Ethereum Ecosystem

The implementation of EIP-8037 and EIP-8038 necessitates a coordinated response from various stakeholders within the Ethereum ecosystem. Clear guidance has been provided to ensure a smooth transition:

  • For Layer 1 Contract Maintainers: Developers responsible for maintaining smart contracts on the Ethereum mainnet are strongly encouraged to utilize a dedicated tool for assessing potential impacts. By inputting contract addresses into the "affected-contracts search" tool (available at https://ethereum.github.io/repricing-impact/affected-contracts.html?schedule=eip-8038), they can identify specific contracts that might be affected by the repricing. The tool provides details on the distinct failure modes and the particular repricing adjustments driving each one. This allows for targeted remediation efforts, such as updating gas stipends, adjusting hardcoded gas values, or refactoring logic that relies on gasleft().

  • For Wallet, RPC, and Node Tooling Developers: Teams building essential infrastructure like wallets, RPC endpoints, and node client software must update their gas estimation mechanisms. The eth_estimateGas RPC method and other related gas handling functionalities need to be adapted to account for the new cost rules defined by EIP-8037 and EIP-8038. Failure to do so could result in cached gas constants becoming outdated, leading to underestimation of transaction costs and a subsequent increase in failed transactions for end-users. Accurate gas estimation is paramount for a seamless user experience.

  • For Regular Users: End-users of the Ethereum network are generally not required to take any direct action. The responsibility for adapting to these changes lies with the developers of the wallets and infrastructure they use. As long as users are utilizing updated wallet applications and interacting with services that have incorporated the new gas pricing, their experience should remain largely unaffected.

A comprehensive report detailing the most affected entities across the ecosystem has been compiled and is publicly accessible at https://ethereum.github.io/repricing-impact/entity-report.html?schedule=eip-8038. This report serves as a valuable resource for identifying key players in the ecosystem who may need to implement changes. As mentioned, direct outreach to these teams is a priority to ensure widespread awareness and preparation.

Looking Ahead: A Foundation for Scalability

The repricing of state operations through EIP-8037 and EIP-8038 is fundamentally about ensuring the long-term health and scalability of the Ethereum network. By aligning gas costs with the actual resources consumed, Ethereum can safely increase its block gas limit, thereby boosting transaction throughput. This is crucial for accommodating the growing demand for decentralized applications and services on the network.

The new repricing schedule is currently being tested on development networks (devnets) and will be progressively rolled out to public testnets in the lead-up to its activation on the mainnet. This phased approach allows for extensive testing and community feedback, ensuring that any unforeseen issues can be identified and addressed before impacting the live network. Developers and projects are strongly encouraged to leverage these testing environments to validate their applications against the new pricing model.

As with all significant protocol upgrades, communication and transparency are key. Announcements regarding changes that directly impact users will be proactively disseminated through official blog posts and community channels. Furthermore, active participation in forums such as the Ethereum R&D Discord server (specifically the evm-pricing channel) and the relevant Telegram groups is encouraged for developers seeking to ask questions or engage in discussions. For those closely following the protocol roadmap, adherence to the All Core Developers (ACD) process and participation in the discussion threads for EIP-8037 and EIP-8038 on Ethereum Magicians are vital. These platforms serve as central hubs for technical discussions, proposals, and community consensus-building, ensuring that the evolution of Ethereum remains a collaborative and informed process. The ultimate goal is to create a more efficient, scalable, and sustainable Ethereum for all participants.

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