Von Jacek Varky

Estimated reading time: 2 minutes

Techblog

Mit dem Smart Contract Analyse-Tool EVMuncher auf der Devcon

How much gas is needed when it interacts with this Smart Contract? Developing a smart contract is easy. There are a lot of tutorials and examples on how to write a smart contract. In some cases, it is even possible to simply copy the code. Afterwards compile it, deploy it and let the users use…

Techblog

How much gas is needed when it interacts with this Smart Contract?

Developing a smart contract is easy. There are a lot of tutorials and examples on how to write a smart contract. In some cases, it is even possible to simply copy the code. Afterwards compile it, deploy it and let the users use it. But has it been optimized before the deployment or does it waste the user’s gas?

On October 10, 2019, at the Devcon in Osaka, Japan, I present a tool called EVMuncher which analyzes the bytecode of a deployed smart contract based on the rules presented in Chen et al. (2018): “Towards Saving Money in Using Smart Contracts”.

A user can enter the address of a smart contract and the tool reveals if the smart contract has been optimized. For non-optimized cases the user sees how much gas is wasted by using the functions. The estimation is based on the analysis of the OP codes. Thus, is not necessary to provide the ABI or the source code. This gives users the possibility to verify that smart contracts do not use too much gas and forces developers to optimize their smart contracts.

More information about my presentation can be found on the official Devcon website. My colleague Frank Polster will also at Devcon. His Twitter Handle is @frankpfeift and mine is @jacekvar.


About the author

Von Jacek Varky