遇见数据集

Verified Smart Contracts

收藏
DataCite Commons2023-08-21 更新2024-07-29 收录
官方服务:

资源简介:

<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)智能合约的数据集,涵盖Solidity与Vyper两种编程语言编写的源代码。该数据集包含截至2022年4月1日所有已在Etherscan平台完成验证且至少发生过一笔交易的已部署以太坊智能合约。本次数据集从2,217,692份原始智能合约中筛选出186,397份唯一智能合约予以收录,总计包含53,843,305行代码。数据集包含三个文件夹:分别为训练集(train)、验证集(validation)与测试集(test),每个文件夹内均包含若干采用Apache Parquet数据格式的编号式数据文件。<br><br><b>环境配置</b>加载该数据集需依赖Python的Pandas库,支持基于Unix的操作系统与Windows系统。<br><br><b>快速入门</b>以下代码示例展示了如何将数据集加载至Pandas数据框(DataFrame)中:<br><br>&gt;&gt;&gt; import pandas as pd<br>&gt;&gt;&gt; df = pd.read_parquet("path/to/data")<br><br><b>授权说明</b>数据集中的所有智能合约均为公开可获取内容,通过Etherscan应用程序编程接口(API)获取,且受其自身原始授权条款约束。

提供机构:
figshare
创建时间:
2022-09-02
搜集汇总
数据集介绍
Verified Smart Contracts 数据集图片
以上内容由遇见数据集搜集并总结生成
二维码
社区交流群
二维码
科研交流群
商业服务