5.1 KiB
5.1 KiB
Ethereum Contracts Dataset v1.0.0
This is a dataset of all historical contract deployments
The dataset was created by using this script
Data is distributed as parquet files and released into the public domain under a CC0 license
Usage
Some example uses of this dataset include:
- look up all contracts deployed by an address
- look up all contracts that have a given bytecode
- analyze distribution of contract bytecode motifs
An example notebook exploring this dataset can be found here
Schema
contracts table
each row corresponds to a contract create trace
| column | type | description |
|---|---|---|
| block_number | INTEGER | block number when contract was created |
| create_index | INTEGER | increased by 1 for each contract created in block |
| transaction_hash | BINARY | hash of transaction that created contract |
| contract_address | BINARY | address of deployed contract |
| deployer | BINARY | EOA that deployed the contract |
| factory | BINARY | the from field in the creation trace |
| init_code | BINARY | initialization bytecode of contract |
| code | BINARY | bytecode of contract |
| init_code_hash | BINARY | keccak hash of contract initialization code |
| code_hash | BINARY | keccak hash of contract bytecode |
Download
This dataset can be downloaded using either the pdp cli tool or the urls below
The total dataset size is 6.57GB
Use pdp
The command pdp download ethereum_contracts will download all files in this dataset
See pdp download -h for available options