Abstract
This work analyses the differences in Gas cost consumption for the execution of individual functions between the two Smart Contract (SC) programming languages Solidity and Vyper. For this purpose, SCs for the most basic types ERC-20, MultiSig and Atomic Swap were created for both programming languages. To enable a comparison, it was ensured that a SC fulfills exactly the same task in each programming language. It turns out, that the calculated estimated Gas amount from the compiler is mostly meaningless. There is also no programming language, that is always superior to the other in Gas cost efficiency for each SC type and that Waves can be an alternative.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Similar content being viewed by others
Notes
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
General coin data: https://coinmarketcap.com/
Ethereum related: https://etherscan.io/.
References
Nakamoto, S.: Bitcoin: a peer-to-peer electronic cash system (2008). https://bitcoin.org/bitcoin.pdf. Accessed 07 Feb 2020
Buterin, V.: A next generation smart contract and decentralized application platform (2014). https://cryptorating.eu/whitepapers/Ethereum/Ethereum_white_paper.pdf. Accessed 07 Feb 2020
Szabo, N.: The idea of smart contracts (1997). https://nakamotoinstitute.org/the-idea-of-smart-contracts. Accessed 07 Feb 2020
Mahdi, H., Miraz, D.C.D.: Atomic cross-chain swaps: development, trajectory and potential of non-monetary digital token swap facilities (2019). https://arxiv.org/abs/1902.04471. Accessed 07 Feb 2020
Baird, K., Jeong, S., Kim, Y., Burgstaller, B., Scholz, B.: The economics of smart contracts (2019). https://arxiv.org/abs/1910.11143. Accessed 07 Feb 2020
Chen, T., Li, X., Luo, X., Zhang, X.: Under-optimized smart contracts devour your money (2017). https://arxiv.org/abs/1703.03994. Accessed 07 Feb 2020
Martin, R.C.: Clean Code: A Handbook of Agile Software Craftsmanship. Prentice Hall, Upper Saddle River (2009)
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2020 The Editor(s) (if applicable) and The Author(s), under exclusive license to Springer Nature Switzerland AG
About this paper
Cite this paper
Adler, F., Kitzmann, D., Jansen, M. (2020). Analysis of Costs for Smart Contract Execution. In: Prieto, J., Pinto, A., Das, A., Ferretti, S. (eds) Blockchain and Applications. BLOCKCHAIN 2020. Advances in Intelligent Systems and Computing, vol 1238. Springer, Cham. https://doi.org/10.1007/978-3-030-52535-4_16
Download citation
DOI: https://doi.org/10.1007/978-3-030-52535-4_16
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-030-52534-7
Online ISBN: 978-3-030-52535-4
eBook Packages: Intelligent Technologies and RoboticsIntelligent Technologies and Robotics (R0)