- Centre for Complexity Science, Imperial College London, London, United Kingdom
The “gas fee” paid for inclusion in the blockchain is analyzed in two parts. First, we consider how “effort” in terms of resources required to process and store a transaction turns into a “gas limit,” which, through a fee comprised of the “base” and “priority fee” in the current version of Ethereum, is converted into the cost paid by the user. We adhere closely to the Ethereum protocol to simplify the analysis and to constrain the design choices when considering “multidimensional gas.” Second, we assume that the “gas” price is given deus ex machina by a fractional Ornstein–Uhlenbeck process and evaluate various derivatives. These contracts can, for example, mitigate gas cost volatility. The ability to price and trade “forwards” in addition to the existing “spot” inclusion into the blockchain could enable users to hedge against future cost fluctuations. Overall, this article offers a comprehensive analysis of gas fee dynamics on the Ethereum blockchain, integrating supply-side constraints with demand-side modelling to enhance the predictability and stability of transaction costs.
1 Introduction
The supply and demand of blockchain real estate, divided into blocks and incrementally released, are entangled but analyzed separately in this article. In the first part of the article, we consider what can be roughly termed the supply side, whereas in the second part, we consider the demand side.
Gas is central to our discussion. It is paid for by blockchain users and plays an integral part in blockchain construction. Who receives the payment is blockchain-dependent. It can fund the maintenance of a blockchain and often helps block builders prioritize transactions in the mempool, that is, the pool of pending transactions1.
In the case of Ethereum2, the blockchain, through the Ethereum virtual machine (EVM), sustains the state and carries out instructions that update it. This could be a simple transfer of ether, the chain’s native token, or a more complicated execution of a smart contract. Note that a transfer in isolation does not constitute a contract because a contract under English common law requires consideration.
The next two sections on blockchain supply convert the multidimensional resource requirements into an updated gas cost formula. Afterward, in three sections on blockchain demand, the gas price is modeled as a fractional Ornstein–Uhlenbeck process following earlier work on weather derivatives, where this process turned out to be a sound choice.
The article is rounded off with some general remarks.
2 Gas: the supply side
The choice of gas price function largely determines what is included in the blockchain. From this, it derives its importance. The amount of gas fee users offer above the minimum allows a ranking based on the profitability of proposed transactions, mostly submitted to the generally observable mempool. Block builders create blocks with the largest economic benefit for them from the transactions, which means maximizing the “priority fees” while staying within the constraint governing block size. This ignores MEVs or other possible side deals. What maximizes block builders’ economic benefit is not self-evidently best for current and potential users and the wider set of nodes maintaining the network.
Each group might be further subdivided. Users might have a variety of different latency requirements and cost sensitivities. Operational nodes have different storage and computational costs associated with transactions because some transactions are computationally more expensive, whereas others are dominated by storage or bandwidth requirements. The question of how to quantify and capture these different requirements naturally arises.
A fully multidimensional cost would be a natural response because each resource has its own cost and limitations. This is always possible, but one less ambitious option is to retain simplicity for the multitude of users and shift as much additional complexity as possible to the smaller number of block builders. The toy model below will show how this can be done.
In the article “Prices vs. Quantities” (Weitzman, 1974), Weitzman discussed the trade-off between implementing constraints on price and quantity. A detailed application to tokens, which we will not repeat, can be found in Buterin (2018), while a more recent discussion is in Ndiaye (2024).
We remark that both price and quantity can be employed to constrain usage. Network failure due to breaches of hardware-induced constraints on bandwidth, storage space, or computational capacity of nodes seems, from heuristic grounds, harder to reverse than mispricing, which might see businesses migrate to other blockchains but could be reversible through fine-tuning. The ultimate restraint on functionality is state growth3, as it slows down synchronization time for new nodes and also increases the cost of every future operation on the chain4. Constraining the number of transactions per block and, hence, state growth is essential. For these reasons, only hard quantity constraints will be studied thereafter. As exemplified by the blog by Buterin (2024), there has been interest in considering multidimensional gas prices.
The blog mentions parallels to a problem central banks were confronted with during the 2007–2008 financial crisis. Central banks aimed to expand the range of acceptable collateral at liquidity auctions. Instead of accepting only one type of collateral, they allowed two types, each associated with different credit risks. The question then arose: How should these auctions be organized? Can a single-round auction combine more complicated preferences?
What was proposed by Klemperer (2008) and Klemperer (2013) and adopted after discussions by the Bank of England was a single-round sealed bid auction, where bidders could bid for a fixed amount but offer a choice of collateral. Each type of collateral had an associated borrowing rate to reflect its different creditworthiness. The Bank of England could then select what collateral mix to accept for the provided liquidity for each bidder.
Related ideas were also developed by Milgrom (2009), and linear programming provides the mathematical underpinning to solve such a constrained optimization problem. Klemperer, who also worked jointly with Milgrom and others on the proposal, provided a nice graphical way to determine an acceptable solution. In the section on our toy model, we will develop an analogous framework for gas pricing. Although the overlap is not exact, our interest lies primarily in their approach’s heuristics and graphical implementation rather than in the precise technical details.
In this analogy, the central bank corresponds to the block builders in the Ethereum network. The financial institutions requiring liquidity are analogous to the blockchain users who initiate transactions. Lastly, the collateral constraints financial institutions face can be likened to the hardware constraints block builders encounter.
In the Ethereum network, transaction fees are divided into the base fee, priority fee, and max fee; the base fee is a mandatory, algorithmically determined fee that adjusts based on network demand and is burned (destroyed) to reduce the total supply of ether (ETH). The priority fee is an optional fee set by users to incentivize miners to prioritize their transactions. It is paid directly to miners. The max fee is the maximum amount a user is willing to pay per unit of gas. It includes both the base fee and the priority fee (Figure 1).
Figure 1. Daily median base fee and priority fee over time. The data were extracted from the Dune database, where daily median base fees were computed from block data, and daily median priority fees were computed from transaction data joined with block data. This analysis covers the past 360 days.
The effective fee per gas unit is the sum of the base fee and the priority fee. If the effective fee is less than the max fee, the user is refunded the difference. This mechanism tries to balance users’ wishes to prioritize their transactions with a hard limit on total cost to protect them from excessive spending.
The data utilized in this analysis were extracted from the Dune5 database, employing a structured query to calculate daily median base fees and median priority fees over the past 360 days. The extraction process involved two primary components. First, daily median base fees were computed by truncating the timestamps of block data to the nearest day and then calculating the median base fee per gas unit from the. Ethereum blocks table (Figure 1). Second, daily median priority fees were determined by joining transaction data from the Ethereum transactions table with block data, again truncating the timestamps to the nearest day and calculating the median difference between the maximum fee per gas and the base fee per gas. To achieve the median values, these computations were performed using the APPROX_PERCENTILE function. The final dataset was obtained by joining the daily median base fee and priority fee records on their respective dates. In the next section, we present a new gas model to improve the management of resource constraints.
3 Toy gas model for incorporating resource constraints
Until now, we have described properties of the blockchain. In this section, we take the next step and introduce a simplified supply model highlighting the multidimensional nature of the resources necessary for maintaining and expanding the blockchain. The core concept is as follows: Transactions included in the blockchain can be split into operations. Operations require resources, which are constrained and can be transformed into gas. Gas can be converted into a fee or cost payable in ether. We use the terms fee and cost interchangeably.
Let us define some additional terms. The gas cost paid for a transaction is a product of the amount of gas used and the cost per unit of gas. This can be further subdivided because gas splits in the model we consider into
More about the different components that cost can be decomposed is described next. Each distinct operation involves the use of various resources. The “static gas” matrix captures this transformation. In addition to the static gas, there is a vector called “dynamic gas.” This vector will capture the individual resource constraints. It will be adjusted similarly to the “base fee” of EIP-1559, except that not the total amount of gas of the past block but the gas associated with a particular resource provides the condition for adjusting the particular dynamic factor.
The intuition is that EIP-1559 was approximately one overall constraint for gas implemented through the adjustment of the base fee, but here, we want to have a finer-grained constraint for individual resources. This is achieved by diversifying the conversion factor, that is, adding “dynamic gas.” Overall congestion will still affect the base fee, but fine-grained resource-specific congestion will affect the aggregate cost through the dynamic gas coefficients. This will allow multiple constraints without introducing multiple base or priority fees. The user experience will stay simple, while the, on average, more sophisticated blockbuilders are faced with marginally more computational effort.
For the precise terms of the current framework of Ethereum, see the Yellow Paper by Wood, 2024. The details of the applicable “Fee Schedule” can be found in the article’s appendix G. It allows the transformation of operations6 of transactions or blocks into what is called a “gas limit.” This is the scalar quantity, which we will assume to be subdivided into different buckets, each with its own constraint. To avoid confusion, we use, unlike the Yellow Paper, the term fee or cost, as stated above, always in connection and priced in ether (denominated in ETH, Gwei, or Wei, with
Let us next turn the words into equations. For brevity, we sometimes use the Einstein convention, which assumes repeated indices are summed over even without the summation symbol and requires consistent application of indices. Vectors are written with an arrow overhead, while matrices carry a double arrow. Both are written in bold and capital letters. Coefficients of vectors and matrices use the same letters but in lowercase. The description is given in three forms: in more symbolic notation, index notation, and visual arrays. The different representations are equivalent and are simply added to benefit a diverse readership.
The gas cost
which can be rewritten in terms of coefficients
and in terms of arrays
In the last representation of the cost equation, the
If one wants to work with truly multidimensional gas such that users must pay separate fees for each of the
Next, we introduce hard block-by-block constraints as a
In the next paragraphs, we will show how block builders can fish the most profitable transactions from the mempool. As before, MEVs or other side deals are ignored. There is a simple graphical representation of transactions that enables easy comparison. Each transaction corresponds to a line that intercepts the resource axes. The points of intersection are chosen such that the priority fee is exclusively associated with only one resource consumed by the transaction. This leads to a hyperplane of
In this paragraph, we delve deeper into the graphical representation. Assume the two-dimensional resource case and set the dynamic gas coefficients to one. Let us further assume that the transaction under consideration requires
Figure 2. (A) The line segment intercepts the “storage” axis, where the normalized priority fee is assigned to “storage,” and intercepts the “computation” axis, where the normalized priority fee is assigned to “computation.” (B) The red line corresponds to the gas weighted resources vector; that is, the coefficients for each of the
This representation has the advantage that different transactions can be compared, and furthermore, transactions are represented by identical lines as long as they are related by a scale factor; that is, the same line represents the triplets
Two further cases are considered in the two-dimensional criteria case to acquire an intuition. We compare two transactions with corresponding lines that intersect and do not intersect. Suppose the two lines do not intersect (see Figure 3). In that case, the transaction associated with the line closer to the origin is preferred independent of the constraints, assuming one is sufficiently far from any constraint boundary. If the two lines intersect (see Figure 3), then the choice depends on the relative size of the coefficients of the constraint vector
Figure 3. (A) Two line segments, each representing a type of transaction, with the one closer to the origin always being more attractive independent of the relative resource constraints. (B) Two intersecting line segments. The preferred transaction depends on the relative resource constraints.
Figure 4. (A) The blue vector, independent of direction, always intersects one line first. (B) The line first intersected by the blue vector depends on the direction of the blue vector.
This toy model goes incrementally beyond EIP-1559 because it “start[s] with a base fee amount which is adjusted up and down by the protocol based on how congested the network is” (taken from the EIP-1559 proposal), but instead of having one quantity, it has
Which function is suitable for the modification of the dynamical factor
Hardware questions that flow into the choice of resources to be considered and constraints to implement need to be discussed in a different setting geared toward engineering. We assume that the changing nature of hardware, software, and general infrastructure can be translated into a well-defined set of constraints at any point in time.
General transaction fee mechanism design, and EIP-1559 in particular, has been scrutinized by Chung and Shi (2021), Roughgarden (2021), and others. Some see it as an unalloyed success; others are more circumspect. See Kiayias et al. (2023) for the description of some challenges that are also applicable to the Bitcoin protocol. As an alternative, they propose a tiered mechanism as a solution for congestion and to enhance “egalitarianism,” where users can choose the urgency, and capacity is set aside for cheaper, low-latency demand. This prevents the withdrawal of lower-value transactions from a chain during high throughput. The authors compare their proposal to a service-dependent price, where a high price results in speedy execution, but a low price is prone to delays. The authors draw an analogy between this outcome and a multi-speed highway. To conduct experiments on queuing times, one can augment the number of channels and adjust their width. This comparison also evokes the image of a theme park with VIP lanes, where operators could delay standard ticket holders to provide preferential treatment to VIPs, ostensibly maximizing their perceived value. A problem remains: if endemic demand outstrips processing ability, then high-vaulting “inclusivity” intentions will not prevent the failure of some transactions to be processed. If demand-supply imbalances are temporary, then their scheme or similar schemes proposed by others might be an interesting way to allocate capacity. One could derive a possible inducement for deleting dormant smart contracts, which take up space on the blockchain, from what has been observed for the exercise times of options – American options with flexible exercise times versus European options with fixed exercise times. Under standard conditions ignoring dividends,14 it is best to exercise options at the latest possible time. This could be similar to applying for refunds and deletions of smart contracts under the current scheme. To encourage deletions, one could add a discount function or reduce the returned amount with each technological change that increases and cheapens storage and, therefore, devalues stored data15.
Next are some examples of the diverse blockchain network fee structures currently in fashion. On many blockchains, transaction size and demand determine fees. Bitcoin, the most prominent token, employs a transaction fee model. Fees are determined by the transaction size in bytes and current network demand. Users are incentivized to offer high enough fees so that miners select their transactions as they strive to maximize revenue. In contrast to Bitcoin, IOTA employs a highly unusual feeless transaction model using its Tangle architecture, a directed acyclic graph (DAG). Each transaction in the IOTA network confirms two previous transactions, thus eliminating the need for miners and transaction fees. Other blockchains allocate resources in dramatically different ways. EOS, for example, adopts a resource allocation model in which users stake tokens to access network resources such as CPU and RAM. Instead of paying per transaction, users can perform transactions “for free” within the limits of their staked resources. The above examples hint at the great variety on offer. In the next two sections, we switch to the demand side and consider a pre-determined gas price process.
4 Gas price dynamics: an introduction to the demand side
Gas prices, as observed for various tokens, show persistence and mean reversion (Figure 5). Fractional Ornstein–Uhlenbeck processes possess both these properties and seem a good candidate as a base process. This approach has also proven to be popular for temperature modeling in the field of weather derivatives. Similar to gas prices across blocks, direct investment in temperature across different time periods is not possible. Instead, gas prices can be observed and then incorporated into derivatives contracts.
Figure 5. Motivation for a geometric fractional Ornstein–Uhlenbeck process. The left plot shows the median gas price over time, including minute-level data and a 1-day rolling mean to illustrate mean reversion. The right plot displays a histogram of the median gas prices with a log-normal fit, highlighting the goodness-of-fit metrics:
The relationship between Brownian motion and fractional Brownian motion is similar to the relationship between the Ornstein–Uhlenbeck and the fractional Ornstein–Uhlenbeck processes. In both cases, the fractional process represents a generalization by adding one parameter linked to the autocorrelation.
Various simplifying assumptions are applied when modeling gas fees. In each block, gas fees per unit of gas, in terms of base and priority fees, vary across included transactions. We could model the outliers, for example, the maximum or the minimum fee per block or some average. Under most conditions, due to a lower limit to the gas fee, the volatility of the maximal gas fee should be higher than the volatility of the mean, median, or minimal gas fee, even if counter examples can be constructed easily. Here, we take the median as the gas fee to be modeled. Higher-order moments of the gas are also not considered but are necessary for a comprehensive description of the problem.
The modeling raises several questions that will be discussed near the end of the article. For example, is it possible to simplify planning by creating a forward market for a position in the blockchain in addition to a spot market? In commodities, producers and users use forward markets to hedge risk.
5 A gas model: fractional Ornstein–Uhlenbeck process
In this section, fractional Brownian motion (fBM), a generalization of Brownian motion characterized by the Hurst exponent
For
Some background about the fBM is given next. The Hurst exponent takes its name from the hydrologist H.E. Hurst, who studied the time series of water levels of the Nile in the middle of the last century. He noticed long-range dependencies and scaling behavior. This may not be surprising because cumulative precipitation in a river’s catchment area drives water levels downstream. Some decades later, Mandelbrot named the parameter
The above equation can be solved under some simplifying assumptions for the parameters, as shown in Duncan et al. (2000) and developed by Hu and Øksendal (1999). If
then
and further for
the variance
with
Figure 6. Simulated Ethereum gas price path trajectories as a fractional Ornstein–Uhlenbeck process.
with
As an aside, the gas cost of a single block can be defined in multiple ways. Is it the highest or the lowest cost transaction accepted by the block builder or is it the median or average cost? How are the volatilities of these different quantities related? Except under exceptional circumstances, which can be easily constructed16 but are not replicated in the data; the volatility of the different percentiles of cost can be ordered with the lowest percentile having the lowest volatility since the cost is bounded below by zero.
6 Gas price derivatives
This section explores different forms of gas fee derivatives. We use the fractional Ornstein–Uhlenbeck process developed in the previous section as the underlying price process. European and other option prices for assets following the Ornstein–Uhlenbeck price process, that is,
The same quantity is of interest also for gas derivatives, and the abstract evaluation formula of the two derivatives can be written, respectively, in the form
In addition, one can define a modified derivative with an additional strike price
in this or in other permutations. All these derivatives have been priced and the result can be found in Section 4 of Brody et al. (2002). An example of call option values for different initial gas prices and maturities is given in Figure 7. Since the underlying is in the gas case not directly tradable, the price of the derivatives cannot be simply replicated or the product directly hedged. Next comes a short conclusion rounding of the paper.
Figure 7. Call option values for different times to expiry and underlying prices (Ethereum gas), where the underlying asset follows a fractional Ornstein–Uhlenbeck process.
7 Conclusion
Gas is a determining factor not only for users in their choice of blockchain but also for token holders, stakers, and node operators. Each group has a different perspective. On the supply side, node operators must worry about shifting technological constraints and the costs involved. On the demand side, chains compete fiercely in Darwinian fashion.
In the toy model introduced in Section 2 and developed in Section 3, we showed how multiple constraints can be simply incorporated into the gas fee. Adopting multidimensional gas constraints will better align a blockchain with technological realities.
The subsequent sections focus on the demand side and how the fractional Ornstein–Uhlenbeck price process can act as a base for evaluating derivatives, similar to developments in weather derivatives. Temperature is a key variable in understanding the weather, but it is not directly tradable, unlike company ownership or obligations represented as stock or bond certificates17. The same can be said for the gas fee. The magnitude of the gas fee has economic consequences, but no gas fee certificate is directly investable or transferable between blocks. Consequently, the approximate continuous time series of gas fees does not have to follow a stochastic process that, under a change of measure, could turn into a martingale to avoid arbitrage. Instead, gas fees on the Ethereum blockchain, like temperature, show identifiable patterns and have properties of a mean-reverting fractional Ornstein–Uhlenbeck process. This is theoretically appealing and retains its plausibility after analyzing the data. One of the interesting features of this model is that if transactions are not time-sensitive, execution delays can be traded off for cost improvements. The cost improvement versus time delay can be read From the instantaneous drift of the fractional Ornstein–Uhlenbeck process. This helps users balance cost against time. Optimal investment strategies for an asset following the related Ornstein–Uhlenbeck process can be found in Lv and Meister (2009) and Lv and Meister (2010).
This raises the question of how users can hedge against potential gas fee spikes or the related questions of how one hedges an option when the underlying asset has a drift. How does one hedge gas cost because one cannot hand over block openings from block to block? How does one deal with blocks containing a whole host of transactions rather than only one? These more practical questions will be addressed in a separate report.
What are some of the limitations of the models proposed and related implementation challenges? The models were derived from first principles and justified by stylized facts. Only time will tell if a multidimensional gas fee model, as described in the article, will receive a positive reception. The same applies to gas fee forwards. The willingness of market participants to use such derivatives depends on the future cost and volatility of gas fees, which is dependent on the development of the Ethereum ecosystem. Both the future demand for blockchain space and protocol changes are inherently unknowable. Implementation challenges abound due to the uncertainties stated above.
One possible extension of the research, suggested to us by a referee, is to look at the basis risk between expected spot and forward gas fees. Basis risk is the mismatch between the asset or liability one wants to hedge and the contract one uses as a hedge. The cause of the imperfect substitution can be market forces related to supply and demand imbalances or discrepancies in the contract definitions. Initially, market makers are likely to have limited risk tolerance for gas fee forward contracts and will provide limited liquidity. As a consequence, imbalances in hedging demand and supply between blockchain users and stakers are likely to lead to mispricings and, consequently, basis risk.
Another possible extension of the research is to develop not only the various derivatives proposed and priced in the article but also forward contracts for gas prices at a time point or averaged over a time period in the future. Deployers and users of smart contracts would then be able to gain confidence that costs are predictable and hedgable. A short position in forward contracts has intrinsic attractiveness to stakers and block builders who are long with regard to gas fees and could limit their downside by locking in the forward price. This raises other questions. Could one pre-order block capacity through a forward market to reduce volatility? This benefits both sellers and buyers who wish to obtain fixed costs. These commitments could be enshrined for future reference in current blocks.
In general, assuming the fractional Ornstein–Uhlenbeck process is well suited to modeling gas prices, the question arises: Can one use the predictive nature inherent in the process to improve the block creation protocol to increase efficiency? This will be explored elsewhere.
Another hotly debated topic is how to rein in maximum extractable value (MEV). Reducing MEV might be in the purview of smart contract developers, who should have incentives to construct efficient marketplaces to attract business, and in the interest of blockchain designers, who want their chains to be competitive. Facts to consider: A block-updating rate of multiple seconds will, by default, be slow compared to what legacy finance (LeFi) can offer, and the same is true for limits in on-chain transaction throughput. These two constraints are structural and difficult to overcome. What may be fixable is the reordering of transactions by block builders, which can be guided toward a more beneficial outcome. MEV could, for example, be marginally impeded if the order of transactions in a block is fixed by a checkable deterministic algorithm. A deterministic ordering is clearly harder to manipulate than leaving the choice completely up to block builders. Unpredictability can be introduced either if the ordering is a function of components revealed as late as possible or given by a hard-to-invert function. It would be helpful, therefore, to have a one-way function that allows checking that the right process was carried out but makes predicting the block position fiendishly difficult. To achieve this, imagine a one-way function that takes all the proposed transactions and splits out an ‘unstable ordering;’ that is, if the transactions are slightly changed, the resulting order changes dramatically. An example would be calculating a hash function and using it to force an order. Even this would offer only limited protection against sandwich or other attacks because the block builder can try other similar block constructions if a particular combination of transactions does not give the right sandwich ordering. A particular order of three transactions, assuming that the rest of the block is neutral, is only one of six possible cases. If, instead, the aim is to combine dozens of transactions in a specific order, then the combinatorial possibilities multiply, and it becomes significantly harder for the block builder to deliver a particular outcome in the limited time available.
The main concern should instead not be the reordering or adding of transactions but rather the deliberate exclusion, which results in delays with costly economic consequences. As others have mentioned, this can lead to the liquidation of positions as margin payments18 are not received in time. This is especially worrisome at times of price volatility linked with natural chain congestion. Centralization facilitates this process because a payment proportional to the associated priority fee is required to motivate a block builder to disallow a transaction. This cost will eventually outweigh any gain for a manipulator if it must be paid out too many times.
Therefore, collusion is the likely consequence of restricting block building to a small group because, as Adam Smith wrote, “people of the same trade seldom meet together, even for merriment and diversion, but the conversation ends in a conspiracy against the public.”
Data availability statement
Publicly available datasets were analyzed in this study. These data can be found here: ZHVuZS5jb20=.
Author contributions
BM: writing–original draft and writing&review and editing. HP: writing–original draft and writing&review and editing.
Funding
The author(s) declare that financial support was received for the research, authorship, and/or publication of this article. This research was supported by the imperial college open access fund.
Conflict of interest
The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.
Publisher’s note
All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors, and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.
Supplementary material
The Supplementary Material for this article can be found online at: https://www.frontiersin.org/articles/10.3389/fbloc.2024.1462666/full#supplementary-material
Footnotes
1These are transactions that have been submitted to the mempool but have not yet been incorporated into the blockchain.
2For an analysis of the link between network activity and gas fees for Ethereum, see Koutmos (2023), Liu et al. (2022), Pierro and Rocha (2019), Donmez (2022), and Karaivanov (2024).
3This is reflected in the current choice of gas pricing, where writing to a new “slot” in a state costs a multiple of writing to an existing “slot” in state.
4Consequences of state growth are that the state no longer fits as easily into memory, and updating takes longer.
6There are approximately three dozen types of operations, including refunds, with fees ranging from one unit of gas for a JUMPDEST operation to
7
8We define
9We define
10We use
11The current target gas is
12The EIP-1559 base fee adjustment formula for overall congestion is given in terms of gas used, target gas, current base fee, updated base fee, and some constants. For details, see (Wood) and the many articles that analyze the proposal.
13Blockchain users view this differently because combining transactions can be beneficial; for example, there is a base cost for each transaction of currently 21,000 Gas. Access lists can also warm up storage for a transaction prior to accessing it (see EIP-2930: Optional access lists). To clarify and justify the scaling assumption for block builders, the resources charged and the resources consumed by block builders must match. An exception exists as a block approaches a hard limit for one of the resources; a block builder could prefer smaller transactions for added flexibility.
14Also ignoring other extraneous factors like stock borrow.
15This is similar to dividends in American options, which, under the right conditions, induce early exercise.
16The maximal cost can be held constant, while the minimal, average, and median cost can vary.
17Commodities are a directly investable quantity, but to understand their price processes, one must include storage cost and convenience yield (Kaldor, 1939).
18In the margining case, the trade-off between liquidation delays and risk for counterparties requires some new ideas. For example, can cross-chain links be utilized to allow margins to be replenished more flexibly? One of the authors, HCWP, thanks Numaan Ahmed for stimulating discussions and gives particular thanks to Jim McDonald for clarifying some less-known aspects of the Ethereum blockchain.
References
Biagini, F., Hu, Y., Øksendal, B., and Zhang, T. (2008). Series: probability and its applications. Springer-Verlag London.
Brody, D. C., Syroka, J., and Zervos, M. (2002). Dynamical pricing of weather derivatives. Quant. Finance 2 (3), 189–198. doi:10.1088/1469-7688/2/3/302
Buterin, V. (2018). Blockchain resource pricing. Available at: https://ethresear.ch/uploads/default/original/2X/1/197884012ada193318b67c4b777441e4a1830f49.pdf.
Buterin, V. (2024). Multidimensional gas pricing. Available at: https://vitalik.eth.limo/general/2024/05/09/multidim.html.
Buterin, V., Conner, E., Dudley, R., Slipper, M., and Norden, I. (2019). Ethereum improvement proposal 1559: fee market change for eth 1.0 chain. Available at: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1559.md.
Chung, H., and Shi, E. (2021). “Foundations of transaction fee mechanism design,” in Foundations of transaction fee mechanism design hao Chung, carnegie mellon university elaine Shi. Carnegie Mellon University, 1474. Available at: https://eprint.iacr.org/2021/1474.
Donmez, A. A. K. (2022). Transaction fee economics in the Ethereum blockchain. Econ. Inq. 60 (1), 265–292. doi:10.1111/ecin.13025
Duncan, T. E., Hu, Y., and Pasik-Duncan, B. (2000). Stochastic calculus for fractional brownian motion I. Theory. Theory SIAM J. Control Optim. 38, 582–612. doi:10.1137/s036301299834171x
Ernst, P. A., Peskir, G., and Zhou, Q. (2020). Optimal real-time detection of a drifting Brownian coordinate. Ann. Appl. Probab. 30 (3), 1032–1065. doi:10.1214/19-aap1522
Heston, S. L., and Nandi, S. (2000). A closed-form GARCH option valuation model. Rev. Financ. Stud. 13, 585–625. doi:10.1093/rfs/13.3.585
Hilliard, J. E., and Reis, J. (1978). Valuation of commodity futures and options under stochastic convenience yields, interest rates, and jump diffusions in the spot. J. Finance 12, 61–625. doi:10.2307/2331378
Hu, Y., and Øksendal, B. (1999). Fractional white noise calculus and applications to finance Preprint 10. Department of Mathematics, University of Oslohttps://www.duo.uio.no/bitstream/handle/10852/42642/1/1999-10.pdf
Johnson, P., Pedersen, J. L., Peskir, G., and Zucca, C. (2022). Detecting the presence of a random drift in Brownian motion. Stoch. Process. their Appl. 150, 1068–1090. doi:10.1016/j.spa.2021.05.006
Kaldor, N. (1939). Speculation and economic stability. Rev. Econ. Stud. 7, 1–27. doi:10.2307/2967593
Karaivanov, A. S. Z., (2024). Economic determinants of ethereum transaction fees in the priority fee and proof of stake periods (No. dp24-02).
Kiayias, A., Koutsoupias, E., Lazos, P., and Panagiotakos, G. (2023). Tiered mechanisms for blockchain transaction fees. arXiv:2304, 06014. doi:10.48550/arXiv.2304.06014
Klemperer, P. (2008). A new auction for substitutes: central Bank liquidity auctions, the U.S. TARP, and variable product-mix auctions. Oxford University: mimeo.
Koutmos, D. (2023). Network activity and ethereum gas prices. J. Risk Financial Manag. 16 (10), 431–444. doi:10.3390/jrfm16100431
Lioui, A. (2006). Black–Scholes–Merton revisited under stochastic dividend yields. J. Futur. Mark. 26, 703–732. doi:10.1002/fut.20208
Liu, Y., Yuxuan, L., Kartik, N., Fan, Z., Luyao, Z., and Yinhong, Z. (2022). “Empirical analysis of eip-1559: transaction fees, waiting times, and consensus security,” in ACM SIGSAC conference on computer and communications security (Copenhagen, Denmark, November), 2099–2113. 2.
Lv, Y. D., and Meister, B. K. (2009). Application of the kelly criterion to ornstein-uhlenbeck processes. LNICST 4, 1051–1062. doi:10.1007/978-3-642-02466-5_105
Lv, Y. D., and Meister, B. K. (2010). Applications of the Kelly Criterion to multi-dimensional diffusion processes. Int. J. Theor. Appl. Finance 13, 93–112. doi:10.1142/s0219024910005693
Milgrom, P. R. (2009). Assignment messages and exchanges. Am. Econ. J. Microeconomics 1, 95–113. doi:10.1257/mic.1.2.95
Pierro, G. A., and Rocha, H. (2019). “The influence factors on ethereum transaction fees,” in 2019 IEEE/ACM 2nd international workshop on emerging trends in software engineering for blockchain (WETSEB) (IEEE), 24–31.
Roughgarden, T., (2021). Transaction fee mechanism design. ACM SIGecom Exch., 19(1), pp.52–55. doi:10.1145/3476436.3476445
Weitzman, M. L. (1974). Prices vs. Quantities. Rev. Econ. Stud. 41 (4), 477–491. doi:10.2307/2296698
Wood, G. (2024). Ethereum: a secure decentralised generalised transaction ledger, Paris Version 705168a – 2024-03-04. https://ethereum.github.io/yellowpaper/paper.pdf
Keywords: Ethereum, gas fees, blockchain, Ornstein–Uhlenbeck process, multidimensional gas, derivative valuation, fractional Brownian motion
Citation: Meister BK and Price HCW (2024) Gas fees on the Ethereum blockchain: from foundations to derivative valuations. Front. Blockchain 7:1462666. doi: 10.3389/fbloc.2024.1462666
Received: 10 July 2024; Accepted: 30 September 2024;
Published: 13 November 2024.
Edited by:
Xiao Fan Liu, City University of Hong Kong, Hong Kong SAR, ChinaReviewed by:
Stefania Marcassa, CY Cergy Paris Université, FranceDimitrios Koutmos, Texas A&M University System, United States
Copyright © 2024 Meister and Price. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.
*Correspondence: Bernhard K. Meister, YmVybmhhcmQuay5tZWlzdGVyQGdtYWlsLmNvbQ== Henry C. W. Price, aHAxMTEwQGljLmFjLnVr