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.

To learn more, please refer to the following articles:

Sample Query

Querying the event logs from the example given below.

select *
  from ethereum.raw.logs
where block_number = '15543975'
and transaction_hash ='0x9068357001dc45c59a0c0383860f25fd64daeef205f723c5cbd980f280baca38'

Table Columns

The example used is a USDC transfer event which is part of a Uniswap swap transaction, between ETH and USDC.

Last updated