RBudzynski commited on
Commit
81050d3
·
verified ·
1 Parent(s): df08948

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +94 -3
README.md CHANGED
@@ -1,3 +1,94 @@
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 Logs - Sample
17
+ size_categories:
18
+ - 10M<n<100M
19
+ ---
20
+
21
+ ![BlockDB Banner](./assets/banner.jpg)
22
+
23
+ ## Sample Notice
24
+
25
+ This dataset contains **a small sample** of the full BlockDB Raw Blocks 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
+ Each row represents a unique log emitted during transaction execution:
37
+ • Canonical positioning: (block_number, tx_index, log_index)
38
+ • Emitting contract address
39
+ • Primary event topic (topic_zero)
40
+ • Additional topics (data_topics)
41
+ • Raw event data payload
42
+
43
+ All fields are stored exactly as produced by the node, with direct RLP verifiability for topics, data, and contract address.
44
+
45
+ Every log includes a deterministic _tracing_id that links the record to its genesis event and upstream transaction, forming the foundation for decoded events, swaps, liquidity, NFT events, and custom protocol decoders in downstream BlockDB products.
46
+
47
+
48
+ ## Chains and Coverage
49
+ ETH, BSC, Base, Arbitrum, Unichain, Avalanche, Polygon, Celo, Linea, Optimism (others on request).
50
+ Full history from chain genesis; reorg-aware real-time ingestion and updates.
51
+
52
+
53
+ ## Schema
54
+ List of columns exactly as delivered:
55
+ • block_number BIGINT – Block number that contains the emitting transaction
56
+ • tx_index INTEGER – Zero-based index of the transaction within the block
57
+ • log_index INTEGER – Zero-based position of the log within the transaction
58
+ • contract_address BYTEA – 20-byte address of the contract that emitted the log
59
+ • topic_zero BYTEA – 32-byte primary topic hash identifying the event type (NULL for anonymous events)
60
+ • data_topics BYTEA[] – Array of additional topics (topics[1..n]), as raw bytes
61
+ • data BYTEA – Raw event data payload as emitted on-chain
62
+ • _tracing_id BYTEA – Deterministic lineage identifier of this log record
63
+ • _created_at TIMESTAMPTZ – Record creation timestamp
64
+ • _updated_at TIMESTAMPTZ – Record last update timestamp
65
+
66
+
67
+ ### Notes
68
+ • Primary key: (block_number, tx_index, log_index) guarantees canonical ordering and uniqueness.
69
+ • Foreign key: (block_number, tx_index) links each log directly to its canonical transaction record.
70
+ • Indexes on contract_address, topic_zero, and (contract_address, topic_zero) support fast protocol- or event-specific scans.
71
+ • Binary values can be rendered as hex via encode(column, 'hex') in SQL for display or downstream joins.
72
+
73
+
74
+ ## Lineage & Integrity
75
+ Direct RLP-verifiable fields: contract_address, topic_zero, data_topics, data, and log_index are all directly or indirectly validated against node RLP.
76
+
77
+ _tracing_id provides a deterministic, cryptographic handle for each log row, enabling:
78
+
79
+ • Provenance tracking from raw logs to decoded events and higher-level features
80
+ • Reproducible analytics and signal extraction
81
+ • Cross-system consistency checks (RPC vs. indexers vs. internal warehouses)
82
+
83
+
84
+ ## Common Use Cases
85
+ • Building decoded event layers (swaps, LP actions, mints, burns, governance events, NFT activity)
86
+ • Reconstructing DEX activity and liquidity flows directly from raw logs
87
+ • Protocol-specific analytics (AMMs, lending, perpetuals, bridges, staking) from first principles
88
+ • Detecting MEV patterns, liquidations, and arbitrage events at log-level resolution
89
+
90
+
91
+ ## Quality
92
+ • Verifiable lineage: deterministic cryptographic hashes per row
93
+ • Reorg-aware ingestion: continuity and consistency across forks
94
+ • Complete historical coverage: from chain genesis to present