Smart Contracts in the Real World: A Statistical Exploration of External Data Dependencies
Yishun Wang, Xiaoqi Li, Shipeng Ye, Lei Xie, Ju Xing

TL;DR
This paper provides a comprehensive statistical analysis of external data dependencies in smart contracts, highlighting security concerns, application domains, and interaction methods to improve their reliability and safety.
Contribution
It introduces a large-scale analysis of smart contracts' external data dependencies, including keyword identification, classification, and correlation with complexity, filling a gap in empirical research.
Findings
Approximately 9% of security audits relate to external data dependencies.
External data dependencies vary across application domains.
Complexity correlates with the likelihood of external data interactions.
Abstract
Smart contracts with external data are crucial for functionality but pose security and reliability concerns. Statistical and quantitative studies on this interaction are scarce. To address this gap, we analyzed 10,500 smart contracts, retaining 9,356 valid ones after excluding outdated or erroneous ones. We employed code parsing to transform contract code into abstract syntax trees and identified keywords associated with external data dependencies. We conducted a quantitative analysis by comparing these keywords to a reference list. We manually classified the 9,356 valid smart contracts to ascertain their application domains and typical interaction methods with external data. Additionally, we created a database with this data to facilitate research on smart contract dependencies. Moreover, we reviewed over 3,600 security audit reports, manually identifying 249 (approximately 9%) related…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsBlockchain Technology Applications and Security · Insurance and Financial Risk Management · Economic and Technological Systems Analysis
