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.

Table Columns

Unique Key: transaction_hash, log_index

Column NameData TypeDescription
addressVARCHARThe address of the contract that emitted this log.
dataVARCHARUnindexed data containing further information of the event, encoded in hex.
topic0VARCHARThe keccak256 hash of a flattened event signature string.
topic1VARCHARFirst indexed topic of the event.
topic2VARCHARSecond indexed topic of the event.
topic3VARCHARThird indexed topic of the event.
log_indexBIGINTThe position of this log in the block that it belongs to. The first log has index 0.
transaction_hashVARCHARUnique identifier of the transaction that this log belongs to.
transaction_indexBIGINTThe position of this transaction in the block that it belongs to. The first transaction has index 0.
from_addressVARCHARThe address of the sending party of this transaction.
to_addressVARCHARThe address of the receiving party of this transaction, typically a contract address for logs.
block_numberBIGINTThe length of the chain, in blocks.
block_timestampTIMESTAMP_NTZ(9)The time when the block that contains this log was included on the blockchain.
block_hashVARCHARUnique identifier of the block that includes this log.
_created_atTIMESTAMP_NTZ(9)Timestamp of the entry creation.
_updated_atTIMESTAMP_NTZ(9)Timestamp of the entry update.