useContractEvents
Watches contract events and returns the parsed logs.
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.
You can also watch for custom events by passing an array of prepared events .