license: cc-by-nc-4.0
tags:
- ethereum
- evm
- blockchain
- cryptocurrency
- crypto
- onchain-data
- tabular
- timeseries
- datasets
- pandas
- polars
- duckdb
pretty_name: BlockDB Raw Logs - Sample
size_categories:
- 10M<n<100M
Sample Notice
This dataset contains a small sample of the full BlockDB dataset.
It is provided for evaluation, research, and interoperability testing only.
If you need full historical coverage, real-time streaming, or end-of-day (EOD) exports please contact us directly:
π§ support@blockdb.io
π https://www.blockdb.io
Dataset Overview
Each row represents a unique log emitted during transaction execution: β’ Canonical positioning: (block_number, tx_index, log_index) β’ Emitting contract address β’ Primary event topic (topic_zero) β’ Additional topics (data_topics) β’ Raw event data payload
All fields are stored exactly as produced by the node, with direct RLP verifiability for topics, data, and contract address.
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.
Chains and Coverage
ETH, BSC, Base, Arbitrum, Unichain, Avalanche, Polygon, Celo, Linea, Optimism (others on request). Full history from chain genesis; reorg-aware real-time ingestion and updates.
Schema
List of columns exactly as delivered:
β’ block_number BIGINT β Block number that contains the emitting transaction
β’ tx_index INTEGER β Zero-based index of the transaction within the block
β’ log_index INTEGER β Zero-based position of the log within the transaction
β’ contract_address BYTEA β 20-byte address of the contract that emitted the log
β’ topic_zero BYTEA β 32-byte primary topic hash identifying the event type (NULL for anonymous events)
β’ data_topics BYTEA[] β Array of additional topics (topics[1..n]), as raw bytes
β’ data BYTEA β Raw event data payload as emitted on-chain
β’ _tracing_id BYTEA β Deterministic lineage identifier of this log record
β’ _created_at TIMESTAMPTZ β Record creation timestamp
β’ _updated_at TIMESTAMPTZ β Record last update timestamp
Notes
β’ Primary key: (block_number, tx_index, log_index) guarantees canonical ordering and uniqueness.
β’ Foreign key: (block_number, tx_index) links each log directly to its canonical transaction record.
β’ Indexes on contract_address, topic_zero, and (contract_address, topic_zero) support fast protocol- or event-specific scans.
β’ Binary values can be rendered as hex via encode(column, 'hex') in SQL for display or downstream joins.
Lineage & Integrity
Direct RLP-verifiable fields: contract_address, topic_zero, data_topics, data, and log_index are all directly or indirectly validated against node RLP.
_tracing_id provides a deterministic, cryptographic handle for each log row, enabling:
β’ Provenance tracking from raw logs to decoded events and higher-level features
β’ Reproducible analytics and signal extraction
β’ Cross-system consistency checks (RPC vs. indexers vs. internal warehouses)
Common Use Cases
β’ Building decoded event layers (swaps, LP actions, mints, burns, governance events, NFT activity)
β’ Reconstructing DEX activity and liquidity flows directly from raw logs
β’ Protocol-specific analytics (AMMs, lending, perpetuals, bridges, staking) from first principles
β’ Detecting MEV patterns, liquidations, and arbitrage events at log-level resolution
Quality
β’ Verifiable lineage: deterministic cryptographic hashes per row
β’ Reorg-aware ingestion: continuity and consistency across forks
β’ Complete historical coverage: from chain genesis to present
