Smart Money Wasting: Analyzing Gas Cost Drivers of Ethereum Smart Contracts

被引:2
作者
Severin, Benedikt [1 ]
Hesenius, Marc [1 ]
Blum, Florian [1 ]
Hettmer, Michael [1 ]
Gruhn, Volker [1 ]
机构
[1] Univ Duisburg Essen, Essen, Germany
来源
2022 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE MAINTENANCE AND EVOLUTION (ICSME 2022) | 2022年
关键词
Perspectives; Smart Contracts; Ethereum; Resource Consumption; Software Maintenance; OPTIMIZATION;
D O I
10.1109/ICSME55016.2022.00034
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Users must pay a fee depending on resource consumption when using smart contracts on the Ethereum blockchain. As even the most basic operations cost several dollars under moderate network load, developers may actively reduce user-paid fees by optimizing the smart contract resource consumption ('gas costs'). Previous works suggested patterns and tools supporting developers in gas cost optimization, but up to now a comprehensive analysis of their real-world impact is missing. Another gap is the maintenance and evolution support for smart contracts leveraging the publicly available usage data. We propose high-level gas cost profiles and review which profiles are considered in the existing literature. Additionally, we sampled around 68,000 smart contract interactions from three years, analyzed them using the gas cost profiles, and compare the findings to the current focus in literature. In our data set, external code, storage, and the transaction base fee are first-level cost drivers in terms of absolute gas usage, but contract deployment becomes also costly when considering the average gas usage per transaction. Our analysis also shows that plenty of previous work focused cost categories barely influencing resource consumption.
引用
收藏
页码:293 / 304
页数:12
相关论文
共 80 条
  • [1] Adler Felix, 2020, Blockchain and Applications. 2nd International Congress. Advances in Intelligent Systems and Computing (AISC 1238), P153, DOI 10.1007/978-3-030-52535-4_16
  • [2] Aggarwal K, 2015, PROC IEEE INT CONF S, P311, DOI 10.1109/ICSM.2015.7332477
  • [3] Synthesis of Super-Optimized Smart Contracts Using Max-SMT
    Albert, Elvira
    Gordillo, Pablo
    Rubio, Albert
    Schett, Maria A.
    [J]. COMPUTER AIDED VERIFICATION (CAV 2020), PT I, 2020, 12224 : 177 - 200
  • [4] GASOL: Gas Analysis and Optimization for Ethereum Smart Contracts
    Albert, Elvira
    Correas, Jesus
    Gordillo, Pablo
    Roman-Diez, Guillermo
    Rubio, Albert
    [J]. TOOLS AND ALGORITHMS FOR THE CONSTRUCTION AND ANALYSIS OF SYSTEMS, PT II, TACAS 2020, 2020, 12079 : 118 - 125
  • [5] Running on Fumes Preventing Out-of-Gas Vulnerabilities in Ethereum Smart Contracts Using Static Resource Analysis
    Albert, Elvira
    Gordillo, Pablo
    Rubio, Albert
    Sergey, Ilya
    [J]. VERIFICATION AND EVALUATION OF COMPUTER AND COMMUNICATION SYSTEMS, VECOS 2019, 2019, 11847 : 63 - 78
  • [6] OpBench: A CPU Performance Benchmark for Ethereum Smart Contract Operation Code
    Aldweesh, Amjad
    Alharby, Maher
    Mehrnezhad, Maryam
    Van Moorsel, Aad
    [J]. 2019 IEEE INTERNATIONAL CONFERENCE ON BLOCKCHAIN (BLOCKCHAIN 2019), 2019, : 274 - 281
  • [7] A Survey of Consensus Algorithms for Blockchain Technology
    Alsunaidi, Shikah J.
    Alhaidari, Fahd A.
    [J]. 2019 INTERNATIONAL CONFERENCE ON COMPUTER AND INFORMATION SCIENCES (ICCIS), 2019, : 384 - 389
  • [8] [Anonymous], 2022, ISO IEC IEEE INT STA
  • [9] [Anonymous], 2018, THESIS AALTO U ESPOO
  • [10] GasFuzzer: Fuzzing Ethereum Smart Contract Binaries to Expose Gas-Oriented Exception Security Vulnerabilities
    Ashraf, Imran
    Ma, Xiaoxue
    Jiang, Bo
    Chan, W. K.
    [J]. IEEE ACCESS, 2020, 8 (08): : 99552 - 99564