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]].
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”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:
Parameters
Section titled “Parameters”Parameter | Type |
---|---|
log | Log |
iface | Interface |
fragment | EventFragment |
Returns
Section titled “Returns”EventLog
Overrides
Section titled “Overrides”Properties
Section titled “Properties”address
Section titled “address”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.
Inherited from
Section titled “Inherited from”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
.
blockHash
Section titled “blockHash”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]].
Inherited from
Section titled “Inherited from”blockNumber
Section titled “blockNumber”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.
Inherited from
Section titled “Inherited from”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.
Inherited from
Section titled “Inherited from”fragment
Section titled “fragment”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.
Inherited from
Section titled “Inherited from”interface
Section titled “interface”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.
provider
Section titled “provider”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.
Inherited from
Section titled “Inherited from”removed
Section titled “removed”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.
Inherited from
Section titled “Inherited from”topics
Section titled “topics”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.
Inherited from
Section titled “Inherited from”transactionHash
Section titled “transactionHash”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]].
Inherited from
Section titled “Inherited from”transactionIndex
Section titled “transactionIndex”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.
Inherited from
Section titled “Inherited from”Accessors
Section titled “Accessors”eventName
Section titled “eventName”Get Signature
Section titled “Get Signature”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.
Returns
Section titled “Returns”string
eventSignature
Section titled “eventSignature”Get Signature
Section titled “Get Signature”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.
Returns
Section titled “Returns”string
Methods
Section titled “Methods”getBlock()
Section titled “getBlock()”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.
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”getTransaction()
Section titled “getTransaction()”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.
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”getTransactionReceipt()
Section titled “getTransactionReceipt()”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.
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”removedEvent()
Section titled “removedEvent()”removedEvent(): OrphanFilter;
Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/providers/provider.d.ts:540
@_ignore:
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”toJSON()
Section titled “toJSON()”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.
Returns
Section titled “Returns”any