useEventListener
Tracks the events associated with a contract.
Returns contract events.
How to import
import { useEventListener } from 'eth-hooks';
How to use
To get started:
const events = useEventListener<GTypedEvent>(contract, eventFilter, startBlock, toBlock?, options?): THookResult<GTypedEvent[]>