What is it about?
Deployment and invocation of smart contracts on a blockchain consumes gas. Users and developers have to pay a fee for the gas used, based on the resources used by the smart contract functions. Hence, it is important to optimize these gas costs. Our work aims to automate this optimization by searching for more optimized versions of functions in a smart contract in a repository of Solidity code. The aim is to suggest more optimal patterns to the developer automatically.
Featured Image
Why is it important?
To our knowledge, no other work till date has attempted to use code mining to automate the gas consumption of smart contracts. Focus has mainly been on the detection of vulnerabilities and on some known fixed suboptimal patterns.
Perspectives
This is important to me, since it has provided a new direction of research in smart contract optimization. My work has also shown that this is a viable method for gas cost optimization.
Avik Banerjee
Technische Universitat Hamburg-Harburg
Read the Original
This page is a summary of: Towards Solidity Smart Contract Efficiency Optimization through Code Mining, March 2025, ACM (Association for Computing Machinery),
DOI: 10.1145/3672608.3707768.
You can read the full text:
Contributors
The following have contributed to this page







