ListenForEventsParams
The ListenForEventsParams interface defines the parameters required to listen for contract events.
Properties
-
eventName:stringThe name of the event to listen for. -
callback:(logs: any) => voidA callback function to handle the event logs. -
onError:(error: any) => voidA callback function to handle errors.