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

log_index

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

24

transaction_hash

Unique identifier of the transaction that this log belongs to.

0x587a743a496d2ac9b0d6806c22c909d6971ed2fddccd55339e8e30d7fd7a9533

transaction_index

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

3

address

The address of the contract that emitted this log.

0x06efdbff2a14a7c8e15944d1f4a48f9f95f663a4

data

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

0x000000000000000000000000000000000000000000000000000000000001de0b

topic0

The keccak256 hash of a flattened event signature string.

0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef

topic1

First indexed topic of the event.

0x000000000000000000000000f40442e1cb0bdfb496e8b7405d0c1c48a81bc897

topic2

Second indexed topic of the event

0x0000000000000000000000004f82e73edb06d29ff62c91ec8f5ff06571bdeb29

topic3

Third indexed topic of the event.

block_timestamp

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

2023-11-16 10:04:52+00:00

block_number

The length of the chain, in blocks.

835593

block_hash

Unique identifier of the block that includes this log.

0x2dd0c5470275b91cc522a3da34f8e1fd39811cfcb2222af61b45a21533ce6f69

_created_at

Timestamp of the entry creation.

2023-11-16 10:16:40.290000+00:00

_updated_at

Timestamp of the entry update.

2023-11-16 10:16:40.290000+00:00

from_address

The address of the sending party of this transaction.

0x0d1150b92443f6702e2b52cb5ce4eb7b95fe3aea

to_address

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

0x6131b5fae19ea4f9d964eac0408e4408b66337b5

Last updated