Inconsistent RPC responses from Infura vs Alchemy websocket provider #2826
Unanswered
PhilippLgh
asked this question in
Q&A
Replies: 1 comment
-
That is more to do with the backend than ethers. There is no way for ethers to know, given a result of zero entries, whether it is correct or not. If you use the most recent version of ethers, the events API (the Does that make sense and will the event API solve your issue? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug

Calling
getLogs()
on both providers and Infura seems to return many false 0 event responses.Reproduction steps
The code is polling because
provider.on('block')
had noticeable delay and became unstable.Stripped some code for clarity:
Environment:
Node.js, Desktop, "ethers": "^5.4.1",
Search Terms
infura invalid logs log data and transfer events
Beta Was this translation helpful? Give feedback.
All reactions