Interface TypedEventLog<TCEvent>

interface TypedEventLog<TCEvent> {
    address: string;
    args: __TypechainAOutputTuple<TCEvent> & __TypechainOutputObject<TCEvent>;
    blockHash: string;
    blockNumber: number;
    data: string;
    eventName: string;
    eventSignature: string;
    fragment: EventFragment;
    index: number;
    interface: Interface;
    provider: Provider;
    removed: boolean;
    topics: readonly string[];
    transactionHash: string;
    transactionIndex: number;
    getBlock(): Promise<Block>;
    getTransaction(): Promise<TransactionResponse>;
    getTransactionReceipt(): Promise<TransactionReceipt>;
    removedEvent(): OrphanFilter;
    toJSON(): any;
}

Type Parameters

Hierarchy

  • Omit<EventLog, "args">
    • TypedEventLog

Properties

address: string

The address of the contract that emitted this log.

args: __TypechainAOutputTuple<TCEvent> & __TypechainOutputObject<TCEvent>
blockHash: string

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

blockNumber: number

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.

data: string

The data included in this log when it was emitted.

eventName: string
eventSignature: string
fragment: EventFragment

The matching event.

index: number

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.

interface: Interface

The Contract Interface.

provider: Provider

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

removed: boolean

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.

topics: readonly string[]

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.

transactionHash: string

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

transactionIndex: number

The index within the transaction of this log.

Methods

  • Returns the block that this log occurred in.

    Returns Promise<Block>

  • Returns the transaction that this log occurred in.

    Returns Promise<TransactionResponse>

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

    Returns Promise<TransactionReceipt>

  • @_ignore:

    Returns OrphanFilter

  • Returns a JSON-compatible object.

    Returns any