Skip to content

Type Alias: Log

type Log = {
  address: Address;
  blockHash: Hash;
  blockNumber: bigint;
  data: Hex;
  logIndex: number;
  removed: boolean;
  topics:   | []
     | [Hex]
     | [Hex, ...Hex[]];
  transactionHash: Hash;
  transactionIndex: number;
};

Defined in: apps/submitter/lib/types/ethereum.ts:13

Type of EVM logs.

Properties

address

address: Address;

Defined in: apps/submitter/lib/types/ethereum.ts:19

The address from which this log originated


blockHash

blockHash: Hash;

Defined in: apps/submitter/lib/types/ethereum.ts:22

Hash of block containing this log or null if pending


blockNumber

blockNumber: bigint;

Defined in: apps/submitter/lib/types/ethereum.ts:25

Number of block containing this log or null if pending


data

data: Hex;

Defined in: apps/submitter/lib/types/ethereum.ts:31

Contains the non-indexed arguments of the log


logIndex

logIndex: number;

Defined in: apps/submitter/lib/types/ethereum.ts:34

Index of this log within its block or null if pending


removed

removed: boolean;

Defined in: apps/submitter/lib/types/ethereum.ts:43

Whether this log has been removed from the chain (only for filters, included for compat with Viem type)


topics

topics: 
  | []
  | [Hex]
  | [Hex, ...Hex[]];

Defined in: apps/submitter/lib/types/ethereum.ts:28

List of order-dependent topics — weird type formulation for compat with Viem type.


transactionHash

transactionHash: Hash;

Defined in: apps/submitter/lib/types/ethereum.ts:37

Hash of the transaction that created this log or null if pending


transactionIndex

transactionIndex: number;

Defined in: apps/submitter/lib/types/ethereum.ts:40

Index of the transaction that created this log or null if pending