Skip to main content

ContractEvent type

Standardized return type for contract events that returns event arguments

Signature:

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