use-ink/useink

New Hook `useEvents` to fetch past events

peetzweg opened this issue · 2 comments

As a User I want to fetch events which occurred in the past blocks for the given contract.

I currently have useEvents, which will subscribe to a contract's events. I think for the feature mentioned above we can do useEventsAt(contract, startBlock, endBlock) if it is possible to get events from block ranges via apiPromise

@peetzweg I think we should remove this task for the v 1.0.0 milestone. We can add it for 1.1.0. What do you think?