Skip to content

Contract events arrive slower #1914

Answered by ricmoo
benjaminaaron asked this question in Q&A
Discussion options

You must be logged in to vote

You can use provider.once("block", () => { provider.on(event, handler); }), which will what for the next block before subscribing.

I will probably make v6 only return events starting after the current block, but this is not a change that can be made in v5.

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by benjaminaaron
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
discussion Questions, feedback and general information.
2 participants
Converted from issue

This discussion was converted from issue #894 on August 24, 2021 19:44.