Blockchain Transaction Fee Forecasting: A Comparison of Machine Learning Methods

Gas is the transaction-fee metering system of the Ethereum network. Users of the network are required to select a gas price for submission with their transaction, creating a risk of overpaying or delayed/unprocessed transactions involved in this selection. In this work, we investigate data in the af...

Full description

Bibliographic Details
Main Authors: Butler, C. (Author), Crane, M. (Author)
Format: Article
Language:English
Published: MDPI 2023
Subjects:
gas
Online Access:View Fulltext in Publisher
View in Scopus
LEADER 03033nam a2200265Ia 4500
001 10.3390-math11092212
008 230529s2023 CNT 000 0 und d
020 |a 22277390 (ISSN) 
245 1 0 |a Blockchain Transaction Fee Forecasting: A Comparison of Machine Learning Methods 
260 0 |b MDPI  |c 2023 
856 |z View Fulltext in Publisher  |u https://doi.org/10.3390/math11092212 
856 |z View in Scopus  |u https://www.scopus.com/inward/record.uri?eid=2-s2.0-85159209417&doi=10.3390%2fmath11092212&partnerID=40&md5=f6ca848de6ab64d3eb5b67fc171f16c2 
520 3 |a Gas is the transaction-fee metering system of the Ethereum network. Users of the network are required to select a gas price for submission with their transaction, creating a risk of overpaying or delayed/unprocessed transactions involved in this selection. In this work, we investigate data in the aftermath of the London Hard Fork and shed insight into the transaction dynamics of the network after this major fork. As such, this paper provides an update on work previous to 2019 on the link between EthUSD/BitUSD and gas price. For forecasting, we compare a novel combination of machine learning methods such as Direct-Recursive Hybrid LSTM, CNN-LSTM, and Attention-LSTM. These are combined with wavelet threshold denoising and matrix profile data processing toward the forecasting of block minimum gas price, on a 5-min timescale, over multiple lookaheads. As the first application of the matrix profile being applied to gas price data and forecasting that we are aware of, this study demonstrates that matrix profile data can enhance attention-based models; however, given the hardware constraints, hybrid models outperformed attention and CNN-LSTM models. The wavelet coherence of inputs demonstrates correlation in multiple variables on a 1-day timescale, which is a deviation of base free from gas price. A Direct-Recursive Hybrid LSTM strategy is found to outperform other models, with an average RMSE of 26.08 and R2 of 0.54 over a 50-min lookahead window compared to an RMSE of 26.78 and R2 of 0.452 in the best-performing attention model. Hybrid models are shown to have favorable performance up to a 20-min lookahead with performance being comparable to attention models when forecasting 25–50-min ahead. Forecasts over a range of lookaheads allow users to make an informed decision on gas price selection and the optimal window to submit their transaction in without fear of their transaction being rejected. This, in turn, gives more detailed insight into gas price dynamics than existing recommenders, oracles and forecasting approaches, which provide simple heuristics or limited lookahead horizons. © 2023 by the authors. 
650 0 4 |a attention 
650 0 4 |a CNN-LSTM 
650 0 4 |a Direct-Recursive Hybrid 
650 0 4 |a Ethereum 
650 0 4 |a gas 
650 0 4 |a LSTM 
650 0 4 |a matrix profile 
650 0 4 |a wavelet coherence 
650 0 4 |a wavelet denoising 
700 1 0 |a Butler, C.  |e author 
700 1 0 |a Crane, M.  |e author 
773 |t Mathematics