Skip to main content
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

Implements

Properties

Methods

getBlock()

Returns the block that this log occurred in.

Parameters

Returns

Promise<Block> A promise resolving to the block.

Source

providers/provider.ts:1089

getTransaction()

Returns the transaction that this log occurred in.

Returns

Promise<TransactionResponse> A promise resolving to the transaction.

Source

providers/provider.ts:1100

getTransactionReceipt()

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

Returns

Promise<TransactionReceipt> A promise resolving to the transaction receipt.

Source

providers/provider.ts:1111

toJSON()

Returns a JSON-compatible object.

Returns

any

Source

providers/provider.ts:1065