Skip to content

EventLog

Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/contract/wrappers.d.ts:11

An EventLog contains additional properties parsed from the [[Log]].

new EventLog(
log,
iface,
fragment): EventLog;

Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/contract/wrappers.d.ts:27

@_ignore:

ParameterType
logLog
ifaceInterface
fragmentEventFragment

EventLog

Log.constructor

readonly address: string;

Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/providers/provider.d.ts:494

The address of the contract that emitted this log.

Log.address


readonly args: Result;

Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/contract/wrappers.d.ts:23

The parsed arguments passed to the event by emit.


readonly blockHash: string;

Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/providers/provider.d.ts:476

The block hash of the block this log occurred in. Use the [[Log-getBlock]] to get the [[Block]].

Log.blockHash


readonly blockNumber: number;

Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/providers/provider.d.ts:483

The block number of the block this log occurred in. It is preferred to use the [[Block-hash]] when fetching the related [[Block]], since in the case of an orphaned block, the block at that height may have changed.

Log.blockNumber


readonly data: string;

Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/providers/provider.d.ts:498

The data included in this log when it was emitted.

Log.data


readonly fragment: EventFragment;

Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/contract/wrappers.d.ts:19

The matching event.


readonly index: number;

Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/providers/provider.d.ts:511

The index within the block this log occurred at. This is generally not useful to developers, but can be used with the various roots to proof inclusion within a block.

Log.index


readonly interface: Interface;

Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/contract/wrappers.d.ts:15

The Contract Interface.


readonly provider: Provider;

Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/providers/provider.d.ts:466

The provider connected to the log used to fetch additional details if necessary.

Log.provider


readonly removed: boolean;

Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/providers/provider.d.ts:490

If the Log represents a block that was removed due to an orphaned block, this will be true.

This can only happen within an orphan event listener.

Log.removed


readonly topics: readonly string[];

Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/providers/provider.d.ts:505

The indexed topics included in this log when it was emitted.

All topics are included in the bloom filters, so they can be efficiently filtered using the [[Provider-getLogs]] method.

Log.topics


readonly transactionHash: string;

Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/providers/provider.d.ts:471

The transaction hash of the transaction this log occurred in. Use the [[Log-getTransaction]] to get the [[TransactionResponse]].

Log.transactionHash


readonly transactionIndex: number;

Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/providers/provider.d.ts:515

The index within the transaction of this log.

Log.transactionIndex

get eventName(): string;

Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/contract/wrappers.d.ts:31

The name of the event.

string


get eventSignature(): string;

Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/contract/wrappers.d.ts:35

The signature of the event.

string

getBlock(): Promise<Block>;

Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/providers/provider.d.ts:527

Returns the block that this log occurred in.

Promise<Block>

Log.getBlock


getTransaction(): Promise<TransactionResponse>;

Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/providers/provider.d.ts:531

Returns the transaction that this log occurred in.

Promise<TransactionResponse>

Log.getTransaction


getTransactionReceipt(): Promise<TransactionReceipt>;

Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/providers/provider.d.ts:536

Returns the transaction receipt fot the transaction that this log occurred in.

Promise<TransactionReceipt>

Log.getTransactionReceipt


removedEvent(): OrphanFilter;

Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/providers/provider.d.ts:540

@_ignore:

OrphanFilter

Log.removedEvent


toJSON(): any;

Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/providers/provider.d.ts:523

Returns a JSON-compatible object.

any

Log.toJSON