loading page

GuessGas:Tell me Fine-Grained Gas Consumption of My Smart Contract and Why
  • +3
  • Qing Huang ,
  • Renxiong Chen ,
  • Jinshan Zeng ,
  • Zeng, Jinshan ,
  • Xu, Xiwei ,
  • Lu, Qinghua
Qing Huang
Author Profile
Renxiong Chen
Jiangxi Normal University

Corresponding Author:[email protected]

Author Profile
Jinshan Zeng
Author Profile
Zeng, Jinshan
Author Profile
Xu, Xiwei
Author Profile
Lu, Qinghua
Author Profile

Abstract

In this paper, we present the development of an explainable Gas Estimator model EGE, utilizing big data to mine potential distribution of runtime information. Our approach overcomes the limitations of static gas analysis tools by labeling functions based on interval probability distribution and building code representations containing program semantics. We also considered domain features during training to improve prediction accuracy. Our domain-oriented subgraph-level GNN explanation model SubgraphGas provides explanations for predictions.