This type represents a web3 Log object that has been decoded. Note that it has the same fields the Log type. The differences are:

  1. It adds an additional field with the decodings;
  2. Some fields that in Log are allowed to be strings, here are specified as numbers. (Because this type is for output and that type is for input.)

Hierarchy

  • DecodedLog

Properties

address: string

Address of the emitter (as checksummed hex string).

blockHash: string

The block hash (as hex string). Null if pending.

blockNumber: number

The block number. Null if pending.

data: string

The log's data section (as hex string).

decodings: LogDecoding[]

An array of possible decodings of the given log -- it's an array because logs can be ambiguous.

This field works just like the output of [[WireDecoder.decodeLog]], so see that for more information.

logIndex: number

Index of the log within the block.

topics: string[]

The log's topics; each is a hex string representing 32 bytes.

transactionHash: string

The emitting transaction's hash (as hex string).

transactionIndex: number

Index within the block of the emitting transaction; null if block is pending.

Generated using TypeDoc