useContractEvents
Watches contract events and returns the parsed logs.
Using event extensions
The thirdweb/extesions
export contains event definitions for many popular contracts.
You can use these event definitions to watch for specific events with a type-safe API.
Using custom events
You can also watch for custom events by passing an array of prepared events .