Blockchain technology is one of the most novel technologies that received attention from academia and practitioners in various industries because of its profound nature and the opportunities that it offers, especially in the digital age. Ethereum, which is the largest decentralized blockchain software, was introduced in 2015 and is best known for its smart contracts that facilitate different utilizations over its blockchain network. Also, it can be used as a cryptocurrency, and historically it has been the 2nd most valuable cryptocurrency following Bitcoin. In order to be able to use Ethereum smart contracts over the blockchain network, a transaction fee or a gas fee is set by the network according to that specific task. This study is aimed to develop Machine Learning (ML) models to predict the Ethereum gas fee by using a comparison of Long Short-Term Memory (LSTM) and the Facebook Prophet Model (FPM). The gas fee prediction modeling was done based on the daily dataset of eight years from 2015 to 2022. The results in this study showed that the FPM model in the scenario of this study resulted in a Mean Absolute Error (MAE) of 0.02 and a Root Mean Squared Error (RMSE) of 0.05. However, MAE and RMSE values of the LSTM model turned out equal to 0.006 which showed a higher performance and more accuracy compared to the FPM model.

1.
V.
Buterin
, “
Ethereum: Platform review: Opportunities and challenges for private and consortium blockchains
,
2020
,”.
2.
D.
Güleryüz
and
E.
Özden
, “
Lstm ve facebook prophet kullanarak brent ham petrol trendinin tahmini
,”
Avrupa Bilim ve Teknoloji Dergisi
,
201
9
(
2020
).
3.
M.
Nadler
, “
A quantitative analysis of the ethereum fee market: How storing gas can result in more predictable prices
,” (
2020
).
4.
X.
Luo
,
W.
Cai
,
Z.
Wang
,
X.
Li
, and
C. V.
Leung
, “
A payment channel based hybrid decentralized ethereum token exchange
,” in
2019 IEEE International Conference on Blockchain and Cryptocurrency (ICBC)
(
IEEE
,
2019
) pp.
48
49
.
5.
G. A.
Pierro
, “
Smart-graph: Graphical representations for smart contract on the ethereum blockchain
,” in
2021 IEEE International Conference on Software Analysis, Evolution and Reengineering (SANER)
(
IEEE
,
2021
) pp.
708
714
.
6.
E.
Albert
,
J.
Correas
,
P.
Gordillo
,
G.
Román-Díez
, and
A.
Rubio
, “
GASOL: gas analysis and optimization for Ethereum smart contracts
,” in
International Conference on Tools and Algorithms for the Construction and Analysis of Systems
(
Springer
,
2020
) pp.
118
125
.
7.
L.
Marchesi
,
M.
Marchesi
,
G.
Destefanis
,
G.
Barabino
, and
D.
Tigano
, “
Design patterns for gas optimization in ethereum
,” in
2020 IEEE International Workshop on Blockchain Oriented Software Engineering (IWBOSE)
(
IEEE
,
2020
) pp.
9
15
.
8.
A.
Donmez
and
A.
Karaivanov
, “
Transaction fee economics in the Ethereum blockchain
,”
Economic Inquiry
60
,
265
292
(
2022
).
9.
C.
Li
, “
Gas estimation and optimization for smart contracts on ethereum
,” in
2021 36th IEEE/ACM International Conference on Automated Software Engineering (ASE)
(
IEEE
,
2021
) pp.
1082
1086
.
10.
G. A.
Pierro
and
H.
Rocha
, “
The influence factors on ethereum transaction fees
,” in
2019 IEEE/ACM 2nd International Workshop on Emerging Trends in Software Engineering for Blockchain (WETSEB)
(
IEEE
,
2019
) pp.
24
31
.
11.
A. M.
Fajge
,
S.
Goswami
,
A.
Srivastava
, and
R.
Halder
, “
Wait or reset gas price?: A machine learning-based prediction model for Ethereum transactions’ waiting time
,” in
2021 IEEE 20th International Conference on Trust, Security and Privacy in Computing and Communications (TrustCom)
(
IEEE
,
2021
) pp.
1153
1160
.
12.
H. J.
Singh
and
A. S.
Hafid
, “
Prediction of transaction confirmation time in ethereum blockchain using machine learning
,” in
International Congress on Blockchain and Applications
(
Springer
,
2019
) pp.
126
133
.
13.
C.
Li
,
S.
Nie
,
Y.
Cao
,
Y.
Yu
, and
Z.
Hu
, “
Trace-based dynamic gas estimation of loops in smart contracts
,”
IEEE Open Journal of the Computer Society
1
,
295
306
(
2020
).
14.
R.
Mars
,
A.
Abid
,
S.
Cheikhrouhou
, and
S.
Kallel
, “
A machine learning approach for gas price prediction in ethereum blockchain
,” in
2021 IEEE 45th Annual Computers, Software, and Applications Conference (COMPSAC)
(
IEEE
,
2021
) pp.
156
165
.
15.
H.-M.
Kim
,
G.-W.
Bock
, and
G.
Lee
, “
Predicting ethereum prices with machine learning based on blockchain information
,”
Expert Systems with Applications
184
,
115480
(
2021
).
16.
G. A.
Pierro
,
H.
Rocha
,
S.
Ducasse
,
M.
Marchesi
, and
R.
Tonelli
, “
A user-oriented model for oracles’ gas price prediction
,”
Future Generation Computer Systems
128
,
142
157
(
2022
).
17.
A.
Laurent
,
L.
Brotcorne
, and
B.
Fortz
, “
Transactions fees optimization in the ethereum blockchain
,”
Blockchain: Research and Applications
,
100074
(
2022
).
18.
T.
Toharudin
,
R. S.
Pontoh
,
R. E.
Caraka
,
S.
Zahroh
,
Y.
Lee
, and
R. C.
Chen
, “
Employing long short-term memory and Facebook Prophet model in air temperature forecasting
,”
Communications in Statistics-Simulation and Computation
,
1
24
(
2020
).
19.
M. D.
Haris
,
D.
Adytia
, and
A. W.
Ramadhan
, “
Air temperature forecasting with long short-term memory and prophet: a case study of jakarta, indonesia
,” in
2022 International Conference on Data Science and Its Applications (ICoDSA)
(
IEEE
,
2022
) pp.
251
256
.
20.
Y.
Wang
,
C.
Xu
,
Y.
Li
,
W.
Wu
,
L.
Gui
,
J.
Ren
, and
S.
Yao
, “
An advanced data-driven hybrid model of SARIMA-NNNAR for tuberculosis incidence time series forecasting in Qinghai Province, China
,”
Infection and Drug Resistance
13
,
867
(
2020
).
21.
M.
Santos
, “
Predicting Prices of Bitcoin with Machine Learning — towardsdatascience.com
,” https://towardsdatascience.com/predicting-prices-of-bitcoin-with-machine-learning-3e83bb4dd35f (
2022
), [Accessed 17-May-2023].
This content is only available via PDF.
You do not currently have access to this content.