<p>Efficient smart contract implementation affects gas fees required for deployment and invocation, contributing to the usability and sustainability of blockchain applications that rely on smart contracts. Optimizing smart contract codes is crucial to curb the continued rise of costs related to deploying and invocating smart contracts. This work proposes an extended version of static smart contract optimizer to reduce unnecessary gas fees caused by inefficient smart contract code implementation. Thirty open-licensed Ethereum smart contract codes in the Solidity programming language are included for optimization using the proposed static optimizer. The results show a decrease of 11,447 gas for deployment and 25 for invocation. Additional optimization using the Solidity compiler optimizer reveals a further gas reduction of 9,331 for deployment. Although there was a slight gas increase of 23 during invocation. These findings demonstrate the contribution of the proposed static optimizer in optimizing code implementation for Solidity smart contracts in terms of deployment and invocation. In addition to the gas reductions, the functionalities of the optimized smart contracts remain the same.</p>

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Smart contract optimization for gas fee reduction with static solidity optimizer

  • Alfred Kuhlman,
  • Arya Wicaksana

摘要

Efficient smart contract implementation affects gas fees required for deployment and invocation, contributing to the usability and sustainability of blockchain applications that rely on smart contracts. Optimizing smart contract codes is crucial to curb the continued rise of costs related to deploying and invocating smart contracts. This work proposes an extended version of static smart contract optimizer to reduce unnecessary gas fees caused by inefficient smart contract code implementation. Thirty open-licensed Ethereum smart contract codes in the Solidity programming language are included for optimization using the proposed static optimizer. The results show a decrease of 11,447 gas for deployment and 25 for invocation. Additional optimization using the Solidity compiler optimizer reveals a further gas reduction of 9,331 for deployment. Although there was a slight gas increase of 23 during invocation. These findings demonstrate the contribution of the proposed static optimizer in optimizing code implementation for Solidity smart contracts in terms of deployment and invocation. In addition to the gas reductions, the functionalities of the optimized smart contracts remain the same.