> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blockdb.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Logs

> Every smart contract event log across Ethereum & EVM chains — RLP-verified. The source for DeFi, NFT, and token analytics.

## Overview

* **Dataset ID:** `0103`
* **Table:** `blockdb_evm.b0103_logs_v1`
* **Description:** Event logs emitted by contract transactions
* **Primary key:** `(block_number, tx_index, log_index)`
* **API:** [POST /evm/raw/logs](https://docs.blockdb.io/api-reference/evm/primitives/logs.md)
* **CSV Sample:** [Download](https://huggingface.co/datasets/BlockDB/Raw-Logs-Ethereum-And-EVM-Cryptocurrency-Data/resolve/main/data/blockdb_evm.b0103_logs_v1.csv?download=true)
* **JSON Sample:** [Download](https://huggingface.co/datasets/BlockDB/Raw-Logs-Ethereum-And-EVM-Cryptocurrency-Data/resolve/main/data/blockdb_evm.b0103_logs_v1.json?download=true)

## Sample Viewer

[https://huggingface.co/datasets/BlockDB/Raw-Logs-Ethereum-And-EVM-Cryptocurrency-Data/embed/viewer/default/train](https://huggingface.co/datasets/BlockDB/Raw-Logs-Ethereum-And-EVM-Cryptocurrency-Data/embed/viewer/default/train)

## Columns

| Column | Type | Description |
| - | - | - |
| `block_number` | `BIGINT` | Block height containing this log. |
| `block_time` | `TIMESTAMPTZ` | UTC timestamp of the block. |
| `tx_index` | `INTEGER` | Zero-based transaction index within the block. |
| `log_index` | `INTEGER` | Position of the log within the transaction; indirectly verified by RLP (All logs must be present) |
| `contract_address` | `BYTEA` | Address of the contract that emitted the log (20 bytes); directly verified by RLP |
| `topic_zero` | `BYTEA` | Primary topic hash identifying the event type (32 bytes); directly verified by RLP |
| `data_topics` | `BYTEA[]` | Optional raw concatenation of topics\[1..n] (implementation detail); directly verified by RLP |
| `data` | `BYTEA` | Raw event data; directly verified by RLP |
| `_tracing_id` | `BYTEA` | Tracing ID of the genesis log record. |
| `_created_at` | `TIMESTAMPTZ` | Record creation timestamp. |
| `_updated_at` | `TIMESTAMPTZ` | Record last update timestamp. |

## Use Cases

* DeFi protocol event tracking (swaps, transfers, mints, burns)
* Token transfer and balance change monitoring
* Smart contract interaction analysis
* Event-driven analytics and alerting systems
* Protocol state reconstruction from events
* Cross-contract event correlation and analysis

## Related Datasets

> [card] [Transactions](https://docs.blockdb.io/data-catalog/evm/primitives/transactions.md)
>
> Parent transactions that emitted these logs.

> [card] [Token Transfers](https://docs.blockdb.io/data-catalog/evm/transfers/token-transfers.md)
>
> Transfer events decoded from ERC-20/721/1155 logs.

> [card] [ERC-20 Tokens](https://docs.blockdb.io/data-catalog/evm/entities/erc20-tokens.md)
>
> Token metadata for contracts appearing in logs.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.