Logs

Logs (or event logs), is a way for smart contracts to communicate with the outside world by "documenting" small pieces of information. Event logs allow other people to know that something has happened without them having to query the contract directly.

The most common form of event logs today are ERC20 (and ERC721) token transfer events.

Table Columns

Column NameDescriptionExample

block_number

The length of the chain, in blocks.

2,752,757

block_timestamp

The time when the block that contains this log was included on the blockchain.

2023-08-17 17:54:21

block_hash

Unique identifier of the block that includes this log.

0x05d9e1d51ebd19bc9e9eb58cc934327504c42f28bcdc5bd0801b3ff8c8fa606a

address

The address of the contract that emitted this log.

0xea2a41c02fa86a4901826615f9796e603c6a4491

data

Unindexed data containing further information of the event, encoded in hex.

0x

topic0

The keccak256 hash of a flattened event signature string.

0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef

topic1

First indexed topic of the event.

0x0000000000000000000000000000000000000000000000000000000000000000

topic2

Second indexed topic of the event

0x0000000000000000000000003aa475d51d6f7917c95e4f7e6095abeaccf8cd02

topic3

Third indexed topic of the event.

0x000000000000000000000000000000000000000000000000000000000213cdde

log_index

The position of this log in the block that it belongs to. The first log has index 0.

2,464

transaction_hash

Unique identifier of the transaction that this log belongs to.

0xc75d5e504506bdaf0963ed1578f1a800ed22134589fff0debc2e92126fefb4b2

transaction_index

The position of this transaction in the block that it belongs to. The first transaction has index 0.

9

from_address

The address of the sending party of this transaction.

0x3aa475d51d6f7917c95e4f7e6095abeaccf8cd02

to_address

The address of the receiving party of this transaction, typically a contract address for logs.

0xea2a41c02fa86a4901826615f9796e603c6a4491

_created_at

Timestamp of the entry creation.

2023-08-17 17:54:43

_updated_at

Timestamp of the entry update.

2023-08-17 17:54:43

Last updated