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

  • IRGC Claims to Have Fired at U.S. Forces in the Strait of Hormuz Last Night

    On November 7, the Iranian Islamic Revolutionary Guard Corps (IRGC) stated that they fired at U.S. forces in the Strait of Hormuz last night.

  • CZ Warns of High-Risk Vulnerability in Paint, Urges System Update

    On November 7, Binance founder CZ shared a security warning regarding a high-risk vulnerability in Microsoft Paint on X, stating, "The application cannot protect you from operating system vulnerabilities; please update your operating system immediately." According to related security announcements, the vulnerability disclosed by Microsoft is identified as CVE-2026-83844, with a CVSS score of 8.1. It affects versions of Microsoft Paint below 11.2605.91.0 and is classified as an out-of-bounds read issue that could allow unauthenticated attackers to execute malicious code remotely. Microsoft has released a security patch, and there have been no confirmed reports of the vulnerability being actively exploited.

  • Blue Wave Triggers Semiconductor Stock Sell-off, Korean Retail Investors Suffer Huge Losses in 3x Leverage ETF

    On November 7, under the 'blue wave' of the U.S. midterm elections, semiconductor stocks faced a severe sell-off, raising alarms for Korean retail investors (known as 'Ants') who have heavily invested in U.S. stocks. Over the past month, a U.S. semiconductor 3x leverage ETF has plummeted by over 70%. Korean investors poured approximately 58 trillion won into this product, and concerns are growing that investor losses are continuing to expand. Data from the Korea Securities Depository on the 6th revealed that from October 1 to November 5, Korean investors net bought $4.2762 billion (about 57.938 trillion won) of the Direxion Daily Semiconductor Bull 3x ETF (SOXL). During the same period, the price of SOXL collapsed from $153.69 to $40.87, a decline of 73.41%. Despite the continuous influx of buying during the price drop, the downward trend has not halted. Entering this month, an additional $1.30835 billion has continued to flow into the ETF.

  • Data Breach at South Korea's Largest Securities Firm

    On November 7, Mirae Asset Securities, South Korea's largest securities firm, announced on Saturday that personal information of approximately 39,000 customers and employees had been compromised. Mirae Asset Securities stated that around 3,800 customers' account numbers and personal information of over 35,000 current and former employees and contractors were leaked. The company reported that unauthorized external access occurred on Wednesday and Thursday, targeting its mobile network phone authentication login service and internal systems.

  • Hong Kong SFC Tightens Misleading Title Regulations to Reduce Investor Misjudgment Risks

    On November 6, the Hong Kong Securities and Futures Commission (SFC) published a consultation summary regarding further restrictions on unregulated entities using misleading names to protect investors. The proposed amendments received broad support from the market. The SFC stated that it will expand the list of restricted titles and establish a faster mechanism for updating the list, while also extending regulatory coverage to the virtual asset sector. This aims to reduce investor misjudgments arising from institutional names at the source and strengthen the investor protection framework.

  • State Council Financial Work Report: Strengthening RWA Tokenization Regulation

    On November 7, it was reported that Pan Gongsheng, Governor of the People's Bank of China, presented a report on financial work since October 2025 at the 25th meeting of the Standing Committee of the 14th National People's Congress, on behalf of the State Council. The report stated that the digital renminbi will transition smoothly from cash to deposit currency. In terms of preventing and resolving financial risk hidden dangers, it calls for improving the regulatory policy framework for virtual currencies, enhancing the investigation of clues related to underground money laundering involving virtual currencies, establishing a normalized mechanism for regulating virtual currency 'mining' throughout the entire chain, and strengthening the regulation of Real World Assets (RWA) tokenization. Additionally, it will initiate a new round of crackdowns on illegal and gray economic activities in the financial sector and complete a nationwide special action against illegal fundraising.

  • Ethereum Spot ETF Sees $93.19 Million Net Outflow in One Day

    On November 7, according to SoSoValue data, the Ethereum spot ETF experienced a net outflow of $93.19 million on November 6, Eastern Time. BlackRock's ETHA led the outflows with $90.76 million, bringing its historical total net inflow to $11.52 billion. Meanwhile, BlackRock's Staked ETH ETF, ETHB, saw a net inflow of $1.15 million, with a historical total net inflow of $785 million. As of the time of publication, the total net asset value of the Ethereum spot ETF is $12.84 billion, with a net asset ratio of 4.71%, and a cumulative historical net inflow of $11.92 billion.

  • Bitcoin Spot ETF Sees $412 Million Net Outflow in One Day

    On November 7, according to SoSoValue data, the Bitcoin spot ETF experienced a net outflow of $412 million on November 6, Eastern Time. BlackRock's IBIT led with a net outflow of $403 million, with a historical total net inflow of $65.101 billion. Fidelity's FBTC had a net inflow of $42.8235 million, leading with a historical total net inflow of $10.266 billion. As of the time of publication, the total net asset value of Bitcoin spot ETFs stands at $95.897 billion, with a net asset ratio of 6.28%, and a historical cumulative net inflow of $55.699 billion.

  • Ethereum Spot ETF Sees $93.19 Million Net Outflow in One Day

    On November 7, according to SoSoValue data, the Ethereum spot ETF experienced a net outflow of $93.19 million on November 6, Eastern Time. BlackRock's ETHA led the outflows with $90.76 million, bringing its historical total net inflow to $11.52 billion. Meanwhile, BlackRock's Staked ETH ETF, ETHB, recorded a net inflow of $1.15 million, with a historical total net inflow of $785 million. As of the time of this report, the total net asset value of Ethereum spot ETFs stands at $12.84 billion, with a net asset ratio of 4.71%, and a historical cumulative net inflow of $11.92 billion.

  • BTC Surpasses $76,000

    Market data shows that BTC has surpassed $76,000, currently priced at $76,004, with a 24-hour decline narrowing to 0.71%. The market is experiencing significant volatility, so please ensure proper risk management.