Skip to main content

ContractEvent type

Standardized return type for contract events that returns event arguments

Signature:

export declare type ContractEvent = {
eventName: string;
data: Record<string, unknown>;
transaction: {
blockNumber: number;
blockHash: string;
transactionIndex: number;
removed: boolean;
address: string;
data: string;
topics: Array<string>;
transactionHash: string;
logIndex: number;
};
};