A Massive Analysis of Ethereum Smart Contracts Empirical Study and Code Metrics

被引:66
|
作者
Pinna, Andrea [1 ]
Ibba, Simona [1 ]
Baralla, Gavina [1 ]
Tonelli, Roberto [2 ]
Marchesi, Michele [2 ]
机构
[1] Univ Cagliari, Dept Elect & Elect Engn DIEE, I-09123 Cagliari, Italy
[2] Univ Cagliari, Dept Math & Comp Sci, I-09124 Cagliari, Italy
来源
IEEE ACCESS | 2019年 / 7卷
关键词
Blockchain; code metrics; ethereum; smart contracts; solidity;
D O I
10.1109/ACCESS.2019.2921936
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
In this work, we perform a comprehensive empirical study of smart contracts deployed on the ethereum blockchain. The objective of the analysis is to provide empirical results on smart contracts features, smart contract transactions within the blockchain, the role of the development community, and the source code characteristics. We collected a set of more than 10 000 smart contracts source codes and a dataset of meta-data regarding their interaction with the blockchain from etherscan.io . We examined the collected data computing different statistics on naming policies, smart contract ether balance, number of smart contract transactions, functions, and other quantities characterizing the use and purpose of smart contracts. We found that the number of transactions and the balances follow power-law distributions and the software code metrics display, on average, values lower than corresponding metrics in standard software but have high variances. Focusing the attention on the 20 smart contracts with the topmost number of transactions, we found that most of them represent financial smart contracts and some of them have peculiar software development stories behind them. The results show that blockchain software is rapidly changing and evolving and it is no longer devoted only to cryptovalues applications but to general purpose computation.
引用
收藏
页码:78194 / 78213
页数:20
相关论文
共 50 条
  • [1] An Empirical Study Into the Success of Listed Smart Contracts in Ethereum
    Hartel, Pieter
    Homoliak, Ivan
    Reijsbergen, Daniel
    IEEE ACCESS, 2019, 7 : 177539 - 177555
  • [2] Ethereum smart contracts: Analysis and statistics of their source code and opcodes
    Bistarelli, Stefano
    Mazzante, Gianmarco
    Micheletti, Matteo
    Mostarda, Leonardo
    Sestili, Davide
    Tiezzi, Francesco
    INTERNET OF THINGS, 2020, 11
  • [3] Code Cloning in Smart Contracts on the Ethereum Platform: An Extended Replication Study
    Khan, Faizan
    David, Istvan
    Varro, Daniel
    McIntosh, Shane
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2023, 49 (04) : 2006 - 2019
  • [4] Collateral Use of Deployment Code for Smart Contracts in Ethereum
    di Angelo, Monika
    Salzer, Gernot
    2019 10TH IFIP INTERNATIONAL CONFERENCE ON NEW TECHNOLOGIES, MOBILITY AND SECURITY (NTMS), 2019,
  • [5] Code cloning in smart contracts: a case study on verified contracts from the Ethereum blockchain platform
    Kondo, Masanari
    Oliva, Gustavo A.
    Jiang, Zhen Ming
    Hassan, Ahmed E.
    Mizuno, Osamu
    EMPIRICAL SOFTWARE ENGINEERING, 2020, 25 (06) : 4617 - 4675
  • [6] Code cloning in smart contracts: a case study on verified contracts from the Ethereum blockchain platform
    Masanari Kondo
    Gustavo A. Oliva
    Zhen Ming (Jack) Jiang
    Ahmed E. Hassan
    Osamu Mizuno
    Empirical Software Engineering, 2020, 25 : 4617 - 4675
  • [7] An Organized Repository of Ethereum Smart Contracts' Source Codes and Metrics
    Pierro, Giuseppe Antonio
    Tonelli, Roberto
    Marchesi, Michele
    FUTURE INTERNET, 2020, 12 (11): : 1 - 15
  • [8] Code Will Speak: Early detection of Ponzi Smart Contracts on Ethereum
    Zhang, Yanmei
    Kang, Siqian
    Dai, Wei
    Chen, Shiping
    Zhu, Jianming
    2021 IEEE INTERNATIONAL CONFERENCE ON SERVICES COMPUTING (SCC 2021), 2021, : 301 - 308
  • [9] An Extensive Security Analysis on Ethereum Smart Contracts
    Ashouri, Mohammadreza
    SECURITY AND PRIVACY IN COMMUNICATION NETWORKS, SECURECOMM 2021, PT I, 2021, 398 : 144 - 163
  • [10] Detection and Analysis of Ethereum Energy Smart Contracts
    Lashkari, Bahareh
    Musilek, Petr
    APPLIED SCIENCES-BASEL, 2023, 13 (10):