five

Verified Smart Contracts

收藏
DataCite Commons2025-06-01 更新2024-08-18 收录
下载链接:
https://figshare.com/articles/dataset/Verified_Smart_Contracts/20781799/2
下载链接
链接失效反馈
官方服务:
资源简介:
<b>Artifact Description</b>Verified Smart Contracts is a dataset of real Ethereum smart contracts, containing both Solidity and Vyper source code. It consists of every deployed Ethereum smart contract as of 1st of April 2022, whose been verified on Etherscan and has a least one transaction. A total of 186,397 unique smart contracts are provided, filtered down from 2,217,692 smart contracts. The dataset contains 53,843,305 lines of code.The dataset contains three folders: "train", "validation" and "test". Each folder contains several enumerated files in the Apache Parquet data file format.<b>Environment Setup</b>The Pandas library for Python is required to load the dataset. Both Unix-based and Windows systems are supported.<b>Getting Started</b>The following code snippet demonstrates how to load the dataset into a Pandas DataFrame.<br><br>&gt;&gt;&gt; import pandas as pd<br>&gt;&gt;&gt; df = pd.read_parquet("path/to/data")<b>License</b>All Smart Contracts in the dataset are publicly available, obtained by using Etherscan APIs, and subject to their own original licenses.

<b>数据集说明</b>「经过验证的智能合约」数据集(Verified Smart Contracts)是一个收录真实以太坊智能合约(Ethereum smart contracts)的数据集,涵盖Solidity(Solidity)与Vyper(Vyper)两种智能合约编程语言的源代码。该数据集囊括了截至2022年4月1日所有已部署的以太坊智能合约,这些合约均已在Etherscan(Etherscan)上完成验证且至少存在一笔交易记录。本次发布的数据集共包含186,397个唯一智能合约,其从原始的2,217,692个智能合约中筛选得到。该数据集总代码行数达53,843,305行。数据集包含三个文件夹:train(训练集)、validation(验证集)与test(测试集)。每个文件夹内均包含若干采用Apache Parquet(Apache Parquet)数据格式的编号数据文件。<b>环境配置</b>加载该数据集需依赖Python的Pandas(Pandas)库,支持类Unix与Windows操作系统。<b>快速上手</b>以下代码示例演示了如何将数据集加载至Pandas DataFrame中:<br><br>&gt;&gt;&gt; import pandas as pd<br>&gt;&gt;&gt; df = pd.read_parquet("path/to/data")<b>许可协议</b>本数据集中的所有智能合约均为公开可用内容,通过Etherscan API(Etherscan API)获取,且受其各自原始许可协议的约束。
提供机构:
figshare
创建时间:
2023-08-21
5,000+
优质数据集
54 个
任务类型
进入经典数据集
二维码
社区交流群

面向社区/商业的数据集话题

二维码
科研交流群

面向高校/科研机构的开源数据集话题

数据驱动未来

携手共赢发展

商业合作