Reading past events with types? #1894
Unanswered
SleepingShell
asked this question in
Q&A
Replies: 3 comments 5 replies
-
Stay tuned here on Monday EST |
Beta Was this translation helpful? Give feedback.
0 replies
-
i am also interested in retrieving past events. i don't see a way to query for past events, either in the hooks ( is there a way to do this that i'm missing? if not, is there a plan to add it? thanks for the incredible work. |
Beta Was this translation helpful? Give feedback.
4 replies
-
Hello guys,is there any way about that please |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all, I'm pretty new to React and frontend development. I basically need to read all events that have ever been emitted by my contract and store them in an object (merkle tree), and then subscribe to the new events. I figure that latter will be easy to achieve with
useContractEvent
. However, how should I best achieve reading all events once the page is loaded?More specifically, how can I achieve type safety of events with
getContract
? I would think this should be possible given it has access to the ABI and I generated with wagmi CLI.Is the solution to use ABIType directly? Not sure how exactly I would do that.
Beta Was this translation helpful? Give feedback.
All reactions