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