Log
Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/providers/provider.d.ts:461
A Log in Ethereum represents an event that has been included in a
transaction using the LOG*
opcodes, which are most commonly used by
Solidity’s emit for announcing events.
Extended by
Section titled “Extended by”Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new Log(log, provider): Log;
Defined in: node_modules/.pnpm/ethers@6.15.0/node_modules/ethers/lib.esm/providers/provider.d.ts:519
@_ignore:
Parameters
Section titled “Parameters”Parameter | Type |
---|---|
log | LogParams |
provider | Provider |
Returns
Section titled “Returns”Log
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.
Implementation of
Section titled “Implementation of”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]].
Implementation of
Section titled “Implementation of”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.
Implementation of
Section titled “Implementation of”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.
Implementation of
Section titled “Implementation of”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.
Implementation of
Section titled “Implementation of”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.
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.
Implementation of
Section titled “Implementation of”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.
Implementation of
Section titled “Implementation of”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]].
Implementation of
Section titled “Implementation of”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.
Implementation of
Section titled “Implementation of”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”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”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”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”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