Type alias ContractEvent<TEvent>

ContractEvent<TEvent>: {
    data: TEvent;
    eventName: string;
    transaction: {
        address: string;
        blockHash: string;
        blockNumber: number;
        data: string;
        logIndex: number;
        removed: boolean;
        topics: string[];
        transactionHash: string;
        transactionIndex: number;
    };
}

Standardized return type for contract events that returns event arguments

Type Parameters

  • TEvent = Record<string, any>

Type declaration

  • data: TEvent
  • eventName: string
  • transaction: {
        address: string;
        blockHash: string;
        blockNumber: number;
        data: string;
        logIndex: number;
        removed: boolean;
        topics: string[];
        transactionHash: string;
        transactionIndex: number;
    }
    • address: string
    • blockHash: string
    • blockNumber: number
    • data: string
    • logIndex: number
    • removed: boolean
    • topics: string[]
    • transactionHash: string
    • transactionIndex: number

Generated using TypeDoc