Update README.md
Browse files
README.md
CHANGED
|
@@ -16,71 +16,12 @@ tags:
|
|
| 16 |
pretty_name: BlockDB Raw Contracts - Sample
|
| 17 |
size_categories:
|
| 18 |
- 10M<n<100M
|
|
|
|
|
|
|
| 19 |
---
|
| 20 |
|
| 21 |
-
|
| 22 |
|
| 23 |
-
|
| 24 |
|
| 25 |
-
|
| 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
|
|
|
|
| 16 |
pretty_name: BlockDB Raw Contracts - Sample
|
| 17 |
size_categories:
|
| 18 |
- 10M<n<100M
|
| 19 |
+
dataset_info:
|
| 20 |
+
homepage: https://docs.blockdb.io/data-catalog/evm/primitives/contracts
|
| 21 |
---
|
| 22 |
|
| 23 |
+
*Small evaluation sample.*
|
| 24 |
|
| 25 |
+
**`0121`** · `blockdb_evm.b0121_contracts_v1` - Smart contracts discovered via CREATE/CREATE2 internal transactions. Uses `contract_id` (26 bytes = address + creation_block + tx_index) as primary key to support metamorphic contracts (e.g. CREATE-SELFDESTRUCT-CREATE2 in the same block).
|
| 26 |
|
| 27 |
+
**🌐 [BlockDB docs — schema, API, WebSocket & signup](https://docs.blockdb.io/data-catalog/evm/primitives/contracts)**
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|