Docs

WatchContractEventsOptions

type WatchContractEventsOptions<
abi extends Abi,
abiEvents extends Array<PreparedEvent<AbiEvent>>,
TStrict extends boolean,
> = Prettify<
GetContractEventsOptionsDirect<abi, abiEvents, TStrict> & {
onEvents: (
events: ParseEventLogsResult<abiEvents, TStrict>,
) => void;
}
>;