Upload 5 files
Browse files- README.md +86 -3
- assets/banner.jpg +3 -0
- data/blockdb0121_contracts_v1.csv +0 -0
- data/blockdb0121_contracts_v1.json +0 -0
- data/blockdb0121_contracts_v1.parquet +3 -0
README.md
CHANGED
|
@@ -1,3 +1,86 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: cc-by-nc-4.0
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-nc-4.0
|
| 3 |
+
tags:
|
| 4 |
+
- ethereum
|
| 5 |
+
- evm
|
| 6 |
+
- blockchain
|
| 7 |
+
- cryptocurrency
|
| 8 |
+
- crypto
|
| 9 |
+
- onchain-data
|
| 10 |
+
- tabular
|
| 11 |
+
- timeseries
|
| 12 |
+
- datasets
|
| 13 |
+
- pandas
|
| 14 |
+
- polars
|
| 15 |
+
- duckdb
|
| 16 |
+
pretty_name: BlockDB Raw Contracts - Sample
|
| 17 |
+
size_categories:
|
| 18 |
+
- 10M<n<100M
|
| 19 |
+
---
|
| 20 |
+
|
| 21 |
+

|
| 22 |
+
|
| 23 |
+
## Sample Notice
|
| 24 |
+
|
| 25 |
+
This dataset contains **a small sample** of the full BlockDB Raw Contracts dataset.
|
| 26 |
+
It is provided **for evaluation, research, and interoperability testing only**.
|
| 27 |
+
|
| 28 |
+
If you need full historical coverage, real-time streaming, or end-of-day (EOD) exports
|
| 29 |
+
please contact us directly:
|
| 30 |
+
|
| 31 |
+
📧 **support@blockdb.io**
|
| 32 |
+
🌐 https://www.blockdb.io
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
## Dataset Overview
|
| 36 |
+
Canonical smart contract registry built from CREATE and CREATE2 internal transactions. Each row represents a single contract incarnation with its deployment block, creator address, and call type. A composite 26-byte primary key (address + creation block + tx index) correctly handles metamorphic contracts that self-destruct and redeploy at the same address.
|
| 37 |
+
|
| 38 |
+
|
| 39 |
+
## Chains and Coverage
|
| 40 |
+
ETH, BSC, Base, Arbitrum, Unichain, Avalanche, Polygon, Celo, Linea, Optimism (others on request).
|
| 41 |
+
Full history from chain genesis; reorg-aware real-time ingestion and updates.
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
## Schema
|
| 45 |
+
List of columns exactly as delivered:
|
| 46 |
+
|
| 47 |
+
• contract_id BYTEA – Primary key: 20 bytes (address) + 4 bytes (creation block, big-endian) + 2 bytes (tx_index, big-endian)
|
| 48 |
+
• contract_address BYTEA – Deployed contract address (20 bytes); separate column for efficient lookups
|
| 49 |
+
• block_number BIGINT – Block number where the contract was deployed
|
| 50 |
+
• block_time TIMESTAMPTZ – UTC timestamp when the block was mined
|
| 51 |
+
• tx_index INTEGER – Transaction index within the block
|
| 52 |
+
• trace_address TEXT – Position in the call tree (e.g., "0", "0.0", "0.1.2")
|
| 53 |
+
• creator_address BYTEA – Address that deployed the contract (msg.sender of CREATE/CREATE2, 20 bytes)
|
| 54 |
+
• creation_call_type TEXT – Type of creation call: CREATE or CREATE2
|
| 55 |
+
• _tracing_id BYTEA – Deterministic tracing ID of this contract record
|
| 56 |
+
• _created_at TIMESTAMPTZ – Record creation timestamp
|
| 57 |
+
• _updated_at TIMESTAMPTZ – Record last update timestamp
|
| 58 |
+
|
| 59 |
+
|
| 60 |
+
### Notes
|
| 61 |
+
• contract_id uses a composite key to handle metamorphic contracts (CREATE–SELFDESTRUCT–CREATE2 at the same address in the same block).
|
| 62 |
+
• Use encode(contract_address, 'hex') or encode(creator_address, 'hex') to convert binary values to hex.
|
| 63 |
+
• FK: (block_number, tx_index) → blockdb_evm.b0102_transactions_v1.
|
| 64 |
+
• Indexes on contract_address and (block_number, tx_index) support fast lookups.
|
| 65 |
+
|
| 66 |
+
|
| 67 |
+
## Lineage
|
| 68 |
+
Each contract record includes a deterministic _tracing_id, providing:
|
| 69 |
+
|
| 70 |
+
• Provenance tracking from raw CREATE/CREATE2 traces to contract deployment events
|
| 71 |
+
• Reproducible analytics and signal extraction
|
| 72 |
+
• Cross-system consistency checks (RPC vs. indexers vs. internal warehouses)
|
| 73 |
+
|
| 74 |
+
|
| 75 |
+
## Common Use Cases
|
| 76 |
+
• Contract registry and address validation
|
| 77 |
+
• Deployment tracking and contract lifecycle analysis
|
| 78 |
+
• Factory pattern analysis and contract creation flows
|
| 79 |
+
• Security research and contract classification
|
| 80 |
+
• Foundation for contract interaction and metadata analysis
|
| 81 |
+
|
| 82 |
+
|
| 83 |
+
## Quality
|
| 84 |
+
• Verifiable lineage: deterministic cryptographic hashes per row
|
| 85 |
+
• Reorg-aware ingestion: continuity and consistency across forks
|
| 86 |
+
• Complete historical coverage: from chain genesis to present
|
assets/banner.jpg
ADDED
|
Git LFS Details
|
data/blockdb0121_contracts_v1.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
data/blockdb0121_contracts_v1.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
data/blockdb0121_contracts_v1.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b75069cdc7b0ce97699f0249ea3fc16edd376f5aabfc764b36d7e12942968f1c
|
| 3 |
+
size 130111
|