Skip to main content

Analysis of Costs for Smart Contract Execution

  • Conference paper
  • First Online:
Blockchain and Applications (BLOCKCHAIN 2020)

Part of the book series: Advances in Intelligent Systems and Computing ((AISC,volume 1238))

Included in the following conference series:

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Subscribe and save

Springer+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 129.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 169.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Similar content being viewed by others

Notes

  1. 1.

    https://bitcoinmagazine.com/articles/multisig-future-bitcoin-1394686504.

  2. 2.

    https://solidity.readthedocs.io/.

  3. 3.

    https://vyper.readthedocs.io/.

  4. 4.

    https://wavesplatform.com/files/docs/white_paper_waves_smart_contracts.pdf.

  5. 5.

    https://docs.wavesplatform.com/en/blockchain/transaction/transaction-fee#smart-accounts.

  6. 6.

    https://gitlab.hs-ruhrwest.de/fyfeadle/blockchain-2020-doctoral-consortium.

  7. 7.

    https://eips.ethereum.org/EIPS/eip-20.

  8. 8.

    https://docs.wavesplatform.com/en/ride/base-concepts/complexity.

  9. 9.

    General coin data: https://coinmarketcap.com/

    Ethereum related: https://etherscan.io/.

References

  1. Nakamoto, S.: Bitcoin: a peer-to-peer electronic cash system (2008). https://bitcoin.org/bitcoin.pdf. Accessed 07 Feb 2020

  2. 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

  3. Szabo, N.: The idea of smart contracts (1997). https://nakamotoinstitute.org/the-idea-of-smart-contracts. Accessed 07 Feb 2020

  4. 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

  5. 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

  6. 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

  7. Martin, R.C.: Clean Code: A Handbook of Agile Software Craftsmanship. Prentice Hall, Upper Saddle River (2009)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Felix Adler .

Editor information

Editors and Affiliations

Rights and permissions

Reprints 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

Check for updates. Verify currency and authenticity via CrossMark

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

Publish with us

Policies and ethics