Log represents an protobuf compatible Ethereum Log that defines a contract log event. These events are generated by the LOG opcode and stored/indexed by the node.

Hierarchy

  • Log

Properties

address: string

address of the contract that generated the event

blockHash: string

hash of the block in which the transaction was included

blockNumber: number

block in which the transaction was included

data: Uint8Array

supplied by the contract, usually ABI-encoded

index: number

index of the log in the block

removed: boolean

The Removed field is true if this log was reverted due to a chain reorganisation. You must pay attention to this field if you receive logs through a filter query.

topics: string[]

list of topics provided by the contract.

txHash: string

hash of the transaction

txIndex: number

index of the transaction in the block

Generated using TypeDoc