Docs

WatchContractEventsOptions

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