Cointime

Download App
iOS & Android

Analyzing EIP-7623: Increase Calldata Cost

From Ethresearch by Nerolation

EIP-7623 aims to recalibrate the cost of nonzero calldata bytes.

The proposal’s goal is to reduce the maximum possible block size without affecting regular users who are not using Ethereum exclusively for DA. This comes with reducing the variance in block size and makes room for scaling the block gas limit or the blob count.

With implementing this EIP:

  • DA transactions pay 68 gas per nonzero calldata byte.
  • All others pay 16 gas per nonzero calldata byte.

This is achived with a conditional formula for determining the gas used per transaction.

Why EIP-7623?

Today, we see a huge discrepancy between the the average/median block size and the maximum possible block size.

This comes with the following downsides:

  • Inefficiencies as a result of not fully leveraging available resources while having them ready.
  • Big variance in block size.
  • Max-size blocks have no use case except DoS.

With EIP-4844, DA users have the option to move to using blobs → “they can just switch”.

With increasing calldata cost for DA transactions to 68 gas per byte, the maximum possible block size can be reduced from ~2.8 MB to ~0.5 MB.

drawing700×300 16.6 KB

Reducing the Beacon block size makes room to increase the blob count and/or the block gas limit.

EIP-7623

We have two constants:

ParameterValue
STANDARD_TOKEN_COST4
TOTAL_COST_FLOOR_PER_TOKEN17

Currently we determine the gas used for calldata per transaction as nonzero_bytes_in_calldata * 16 + zero_bytes_in_calldata * 4.

We now one-dimensionalize the current gas formula:Let tokens_in_calldata = zero_bytes_in_calldata + nonzero_bytes_in_calldata * 4.

This effectively combines zero and nonzero byte calldata into tokens_in_calldata.

The current formula for determining the gas used per transaction is then is equivalent to:

tx.gasused = ( 21000 \ + isContractCreation * (32000 + InitCodeWordGas * words(calldata)) \ + STANDARD_TOKEN_COST * tokens_in_calldata \ + evm_gas_used )

The EIP changes it to:

tx.gasUsed = { 21000 \ + max ( STANDARD_TOKEN_COST * tokens_in_calldata \ + evm_gas_used \ + isContractCreation * (32000 + InitCodeWordGas * words(calldata)), TOTAL_COST_FLOOR_PER_TOKEN * tokens_in_calldata )

This formula ensures that transactions that spend at least 52 (68-16) gas per calldata byte on EVM operations (=any Opcode) will continue having a calldata cost per byte of 16 gas.DA transactions will pay 68 gas per calldata byte.

E.g. widely used methods such as transfer or approve consume ~45k and require 64 bytes calldata. Thus, they spend more than the threshold of 52 (68-16) bytes per calldata byte on EVM operations (45_000 - 21_000 - 64*16 > 52*64).

This formula ensures that regular users remain unaffected.

When?

Based on the low complexity and the community’s preference to scale blobs and/or block gas limit, this EIP should be considered for the Pectra hardfork.

Who would pay the 68 gas?

Transactions are unaffected if they spend at least 3.25 times more gas on EVM operations than on calldata. The same can be expressed as spending ~76% of the total gas minus the 21k base cost:

We have the following following variables:

  • Gtotal as the total gas used by a transaction.
  • Gbase as the base cost of a transaction, which is 21,000 gas.
  • Gcalldata as the gas used for calldata.
  • GEVM as the gas used for EVM operations with GEVM=Gtotal−Gbase−Gcalldata

The conditions described can be translated into the following expressions:

  1. Transactions continue with 16 gas per calldata byte if:$$G_{\text{EVM}} \geq 3.25 \times G_{\text{calldata}}$$
  2. The same can be expressed as transactions need to spend at least ~76% of the total gas minus the 21k base cost:$$\frac{G_{\text{EVM}}}{G_{\text{total}} - G_{\text{base}}} \geq 0.76$$

1000×500 42.8 KB

As visible in the above chart, in the last 7 days (17-24 Feb), 4.19% of the transaction would have paid the 68 gas cost. Those 4.19% of transactions were executed by 1.5% of the total addresses who are responsible of 20% of the total calldata.For more information on the impact on individual Solidity methods, check this.

A vast majority of transactions have a significantly higher EVM/calldata gas ratio.

1000×500 18.1 KB

As visible above, most transactions already spend >90% of their gas on EVM operations, compared to the total gas minus the 21k base cost.

The thin bar on the very left of the chart at the 0% tick is mainly caused by DA and transactions having messages/comments in their calldata.

The following chart visualizes the calldata size in bytes of those transations that spend 0% on EVM resources (ignoring the 21k base cost now).We can see that the large number of transaction had a very low number of calldata bytes. The higher numbers are DA transactions.

1000×800 23.6 KB

Useful Links

Comments

All Comments

Recommended for you

  • BTC Surpasses $87,000

    Market data shows that BTC has surpassed $87,000, currently priced at $87,000.01, with a 24-hour increase of 1.73%. The market is highly volatile, so please ensure proper risk management.

  • Nasdaq Composite Index Surpasses June High, Sets New Record

    On September 22, the Nasdaq Composite Index expanded its early gains to 0.34%, reaching a new record high of 27,214.65 points.

  • Trump Expresses Desire to Meet Iranian Officials in New York if 'Conditions are Right'

    On September 22, CNN reported that U.S. President Trump has told his advisors that he hopes to meet with Iranian officials in New York if 'conditions are right.' The official stated that this meeting could also involve some of Trump's senior advisors who are accompanying him in New York, although no meetings have been scheduled yet. The official also mentioned that it is currently unclear whether Iran is willing to hold a potential meeting. Both Secretary of State Rubio and U.S. Ambassador to the United Nations Thomas-Greenfield have indicated that Trump is 'open' to meeting with Iranian officials.

  • Central Bank Reiterates: No Participation in Virtual Currency Activities

    On September 22, the People's Bank of China released financial education promotional content, reiterating the risks associated with virtual currencies. The central bank clarified that virtual currencies such as Bitcoin, Ethereum, and Tether are not legal tender, do not possess legal compensation, and cannot circulate in the market. Engaging in virtual currency-related businesses within the country is considered illegal financial activity and will be banned by law; foreign institutions are prohibited from illegally providing virtual currency services to domestic entities, and without permission, they cannot issue stablecoins pegged to the Renminbi abroad. The central bank advises the public to be cautious of virtual currency projects that claim high returns and guaranteed profits; do not participate in virtual currency trading, mining, or investment; refrain from joining cryptocurrency trading groups or visiting foreign trading platforms; do not lend bank cards or payment accounts, and refuse to act as currency dealers, U dealers, or fund runners. Any discovery of related illegal activities can be reported to regulatory authorities.

  • Kalshi Requests CFTC Approval for Margin Trading on Its Platform

    On September 22, event prediction platform Kalshi requested the U.S. Commodity Futures Trading Commission (CFTC) to allow margin trading on its platform.

  • CME to Launch BCH and Uniswap Futures to Expand Crypto Derivatives Portfolio

    On September 22, according to market news, the CME will launch BCH (Bitcoin Cash) and Uniswap futures to expand its crypto derivatives portfolio.

  • Binance Acquires $100 Million in Circle Shares at a Discount

    On September 22, Circle (CRCL) filed an 8-K document indicating that its subsidiary entered into a new five-year cooperation agreement with Binance on September 17 to expand the promotion of USDC, replacing previous agreements signed in November 2024 and August 2025. Circle will pay Binance monthly incentive fees based on the amount of USDC held through its modular smart contract wallet infrastructure services. On the same day, Binance subscribed to 1,237,011 shares of Class A common stock of Circle at a discounted price of $80.84 per share, totaling $100 million, with the transaction completed. The related shares are generally subject to a two-year transfer restriction, but there are provisions for early termination and other exceptions.

  • BTC Surpasses $86,000

    Market data shows that BTC has surpassed $86,000, currently priced at $86,009.97, with a 24-hour increase of 2.57%. The market is experiencing significant volatility, so please ensure proper risk management.

  • Spot Gold Falls Below $4,300

    On September 22, spot gold fell below $4,300 per ounce, with a daily decline of 1.00%. New York futures gold also dropped over 1.00% during the day, currently reported at $4,340.00 per ounce.

  • Bitcoin Leads Cryptocurrency Market Value Back Above $3 Trillion

    On September 22, following a remarkable rebound in Bitcoin, the market value of digital assets returned to over $3 trillion for the first time since January. However, traders have flocked to leverage trading in perpetual futures, increasing the risk of rapid price fluctuations. According to CoinGecko data, the cryptocurrency market value has increased by over $740 billion since the U.S. Treasury announced last month that it would increase the repurchase of long-term bonds. Leverage bets have also surged. Coinglass data shows that the open interest in various token perpetual futures has risen to nearly $160 billion, the highest level since late October of last year.