Skip to content

Log ​

One event that a contract emitted. The log and filter methods and the receipts return it.

Fields ​

FieldTypeMeaning
addressaddressThe contract that emitted the log.
topicslist of 0 to 4 32-byte valuesThe indexed values. Topic 0 is usually the hash of the event signature.
datahex dataThe values that are not indexed, ABI-encoded.
blockHash32-byte hashThe block of the log.
blockNumberhex numberThe number of that block.
blockTimestamphex numberThe time of that block.
transactionHash32-byte hashThe transaction that emitted the log.
transactionIndexhex numberThe position of that transaction in the block.
logIndexhex numberThe position of the log in the block (not in the transaction).
removedbooleanfalse. A logs subscription sends true for a log of a block that a reorg removed.

Used by ​

eth_getFilterChanges, eth_getFilterLogs, eth_getLogs.