Demystification and near-perfect estimation of minimum gas limit and gas used for Ethereum smart contracts

The Ethereum blockchain has a gas system that associates operations with a cost in gas units. Two central concepts of this system are the gas limit assigned by the issuer of a transaction and the gas used by a transaction. The former is a budget that must not be exhausted before the completion of the transaction execution; otherwise, the execution fails. Therefore, it seems rather essential to determine the minimum gas limit that ensures the execution of a transaction will not abort due to the lack of gas. Despite its practical relevance, this concept has not been properly addressed. In the literature, gas used and minimum gas limit are conflated. This paper proposes a precise notion of minimum gas limit and how it can differ from gas used by a transaction; this is also demonstrated with a quantitative study on real transactions of the Ethereum blockchain. Another significant contribution is the proposition of a fairly precise estimator for each of the two metrics. Again, the confusion between these concepts has led to the creation of estimators only for the gas used by a transaction. We demonstrate that the minimum gas limit for the state of the Ethereum blockchain (after the block) B can serve as a near-perfect estimation for the execution of the transaction at block $$B + \Delta$$ , where $$\Delta \le 11$$ ; the same holds for estimating gas used. These precise estimators can be very valuable in helping the users predict the gas budget of transactions and developers in optimising their smart contracts; over and underestimating gas used and minimum gas limit can lead to a number of practical issues. Overall, this paper serves as an important reference for blockchain developers and users as to how the gas system really works.

Authors

Institutions

Publication Details

Journal
Journal of Cloud Computing Advances Systems and Applications
Published
2025-06-16
DOI
https://doi.org/10.1186/s13677-025-00751-y
Primary Topic
Blockchain Technology Applications and Security
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Demystification and near-perfect estimation of minimum gas limit and gas used for Ethereum smart contracts

Pedro Antonino, Augusto Sampaio, Danilo Rafael de Lima Cabral
Journal of Cloud Computing Advances Systems and Applications
Blockchain Technology Applications and Security
article

Demystification and near-perfect estimation of minimum gas limit and gas used for Ethereum smart contracts

Pedro Antonino, Augusto Sampaio, Danilo Rafael de Lima Cabral
article en

Abstract

The Ethereum blockchain has a gas system that associates operations with a cost in gas units. Two central concepts of this system are the gas limit assigned by the issuer of a transaction and the gas used by a transaction. The former is a budget that must not be exhausted before the completion of the transaction execution; otherwise, the execution fails. Therefore, it seems rather essential to determine the minimum gas limit that ensures the execution of a transaction will not abort due to the lack of gas. Despite its practical relevance, this concept has not been properly addressed. In the literature, gas used and minimum gas limit are conflated. This paper proposes a precise notion of minimum gas limit and how it can differ from gas used by a transaction; this is also demonstrated with a quantitative study on real transactions of the Ethereum blockchain. Another significant contribution is the proposition of a fairly precise estimator for each of the two metrics. Again, the confusion between these concepts has led to the creation of estimators only for the gas used by a transaction. We demonstrate that the minimum gas limit for the state of the Ethereum blockchain (after the block) B can serve as a near-perfect estimation for the execution of the transaction at block $$B + \Delta$$ , where $$\Delta \le 11$$ ; the same holds for estimating gas used. These precise estimators can be very valuable in helping the users predict the gas budget of transactions and developers in optimising their smart contracts; over and underestimating gas used and minimum gas limit can lead to a number of practical issues. Overall, this paper serves as an important reference for blockchain developers and users as to how the gas system really works.

Journal of Cloud Computing Advances Systems and ApplicationsVol. 14(1)
Universidade Federal de Pernambuco (BR)
Conselho Nacional de Desenvolvimento Científico e Tecnológico
Openalex Percentile: Top 80%
Blockchain Technology Applications and Security
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Demystification and near-perfect estimation of minimum gas limit and gas used for Ethereum smart contracts — Pedro Antonino, Augusto Sampaio, et al. · Journal of Cloud Computing Advances Systems and Applications (2025) | TGRS Research Map | TGRS