Your resource for web content, online publishing
and the distribution of digital products.
«  

May

  »
S M T W T F S
 
 
 
 
1
 
2
 
3
 
4
 
5
 
6
 
7
 
8
 
9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26
 
27
 
28
 
29
 
30
 
31
 

Sensitivity Analysis of Block Lookback Periods on Ethereum Gas Prices

DATE POSTED:May 23, 2025
Table of Links

Abstract and 1 Introduction

2 Background and 2.1 Blockchain

2.2 Transactions

3 Motivating Example

4 Computing Transaction Processing Times

5 Data Collection and 5.1 Data Sources

5.2 Approach

6 Results

6.1 RQ1: How long does it take to process a transaction in Ethereum?

6.2 RQ2: How accurate are the estimates for transaction processing time provided by Etherscan and EthGasStation?

7 Can a simpler model be derived? A post-hoc study

8 Implications

8.1 How about end-users?

9 Related Work

10 Threats to Validity

11 Conclusion, Disclaimer, and References

\ A. COMPUTING TRANSACTION PROCESSING TIMES

A.1 Pending timestamp

A.2 Processed timestamp

B. RQ1: GAS PRICE DISTRIBUTION FOR EACH GAS PRICE CATEGORY

B.1 Sensitivity Analysis on Block Lookback

C. RQ2: SUMMARY OF ACCURACY STATISTICS FOR THE PREDICTION MODELS

D. POST-HOC STUDY: SUMMARY OF ACCURACY STATISTICS FOR THE PREDICTION MODELS

B RQ1: GAS PRICE DISTRIBUTION FOR EACH GAS PRICE CATEGORY

The gas price distribution for each gas price category is shown in Figure 21.

\ \ Fig. 21. Gas price distribution for each gas price category.

\ \

B.1 Sensitivity Analysis on Block Lookback

In Ethereum, a new block is appended every 15 seconds on average and each block can contain a limited number of transactions. Therefore, the gas price of transactions is strongly influenced by a demand-supply relationship. In other words, to know whether a given price x is high or low at a particular moment in time, we need to look back in time and observe how much transaction issuers are paying for their transactions.

\ There is no consensus on how further back one should go to determine what the current payment norm is. EthGasStation, the most popular gas tracker, provides gas price statistics based on the past 200 blocks[29]. Looking back 200 blocks is equivalent to looking back 200 * 15 seconds = 3,000 seconds = 50 minutes. In this study, we look back 120 blocks. Our rationale was to cover 30 minutes (half an hour). We believe that, in practice, looking back half an hour is more intuitive and straightforward than looking back 50 minutes. We performed a sensitivity analysis in order to understand how the block lookback choice influences the definition (distribution) of our five gas price categories. We evaluate the following block lookback choices: 60, 120, 180, 200 (EthGasStation) and 240. The results are shown in Figure 22.

\ Fig. 22. The effect of the block lookback parameter on the definition (distribution) of gas price categories. .

\ As depicted in Figure 22, the definition of the gas price categories is only subtly affected by the block lookback choice. Therefore, we believe that our conclusions are likely to hold to all the five lookback choices investigated in this sensitivity analysis. Further studies in the topic should more extensively evaluate the impact of the choice of the block lookback on the definition of gas prices and on the prediction of transaction processing times.

C RQ2: SUMMARY OF ACCURACY STATISTICS FOR THE PREDICTION MODELS

\ Table 8. Summary of accuracy statistics for the prediction models (MAE = Mean Absolute Error, MedAE = Median Absolute Error, MAPE = Mean Absolute Percentage Error, and MedAPE = Median Absolute Percentage Error). Values shown in minutes.

\ \ \ Table 9. Summary of accuracy statistics for the prediction models – per gas price category (MAE = Mean Absolute Error, MedAE =Median Absolute Error, MAPE = Mean Absolute Percentage Error, and MedAPE = Median Absolute Percentage Error). Values shown in minutes.

\

D POST-HOC STUDY: SUMMARY OF ACCURACY STATISTICS FOR THE PREDICTION MODELS

\ Table 10. Summary of accuracy statistics for the prediction models (MAE = Mean Absolute Error, MedAE = Median Absolute Error, MAPE = Mean Absolute Percentage Error, and MedAPE = Median Absolute Percentage Error). Values shown in minutes.

\ \ \ Table 11. Summary of accuracy statistics for the prediction models – per gas price category. (MAE = Mean Absolute Error, MedAE = Median Absolute Error, MAPE = Mean Absolute Percentage Error, and MedAPE = Median Absolute Percentage Error). Values shown in minutes.

\ \ \

:::info Authors:

(1) MICHAEL PACHECO, Software Analysis and Intelligence Lab (SAIL) at Queen’s University, Canada;

(2) GUSTAVO A. OLIVA, Software Analysis and Intelligence Lab (SAIL) at Queen’s University, Canada;

(3) GOPI KRISHNAN RAJBAHADUR, Centre for Software Excellence at Huawei, Canada;

(4) AHMED E. HASSAN, Software Analysis and Intelligence Lab (SAIL) at Queen’s University, Canada.

:::

:::info This paper is available on arxiv under CC BY-NC-ND 4.0 DEED license.

:::

[29] https://ethgasstation.info/txPoolReport.php