Demystification and Near-perfect Estimation of Minimum Gas Limit and Gas Used for Ethereum Smart Contracts
Danilo Rafael de Lima Cabral, Pedro Antonino, Augusto Sampaio

TL;DR
This paper clarifies the concepts of gas limit and gas used in Ethereum, proposes precise estimators for both, and demonstrates near-perfect prediction of transaction costs, aiding developers and users.
Contribution
It introduces a clear definition of minimum gas limit, distinguishes it from gas used, and provides highly accurate estimators for both metrics based on blockchain data.
Findings
Near-perfect estimation of gas used and minimum gas limit within 11 blocks
Quantitative analysis on real Ethereum transactions supports the estimators
Clarification of gas concepts improves transaction prediction and smart contract optimization
Abstract
The Ethereum blockchain has a \emph{gas system} that associates operations with a cost in gas units. Two central concepts of this system are the \emph{gas limit} assigned by the issuer of a transaction and the \emph{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 \emph{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.…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsBlockchain Technology Applications and Security
