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.

3869430

block_timestamp

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

2023-09-12 14:16:47+00:00

block_hash

Unique identifier of the block that includes this log.

0xfa97f71ce0546a85fc4c8199aa50108514b32644b0971cd5766b101abf517279

address

The address of the contract that emitted this log.

0xffcbf84650ce02dafe96926b37a0ac5e34932fa5

data

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

0x000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000f71ba1

topic0

The keccak256 hash of a flattened event signature string.

0xe9149e1b5059238baed02fa659dbf4bd932fbcf760a431330df4d934bc942f37

topic1

First indexed topic of the event.

0x00000000000000000000000054eb303c0e9b73d326895b4997002d88e7e29913

topic2

Second indexed topic of the event

topic3

Third indexed topic of the event.

log_index

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

41

transaction_hash

Unique identifier of the transaction that this log belongs to.

0x4461bff5e5935da30263ab24b2216c1c22dbce7c998019e97a5fe0ee5af75bc8

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.

0x5f6337580d7a52c9e0b3d282879c527cb2543977

to_address

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

0x9ec1c3dcf667f2035fb4cd2eb42a1566fd54d2b7

_created_at

Timestamp of the entry creation.

2023-09-12 14:34:28.032000+00:00

_updated_at

Timestamp of the entry update.

2023-09-12 14:34:28.032000+00:00

Last updated