You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Infura has limit 10000 result for requests.
Event-scanner uses web3.js method for contract instances getPastEvents("allEvents") to fetch events and when even-scanner is running first time it starts {fromBlock: 0}. If event-scanner uses Infura as endpoint and contract already has a lot of logs and the amount of the results is more than 10000, event-scanner stops, because of the unhandled Promise.rejection.
Example that was reproduced with Infura and Testnet Operator contract:
event_scanner | Contract 0xb3356900d56F39c79Bfdc2b625d15B1b5b9262a9 is at local height 0 (diff: 6266859)
event_scanner | (node:7) UnhandledPromiseRejectionWarning: Error: Returned error: query returned more than 10000 results
The text was updated successfully, but these errors were encountered:
Infura has limit 10000 result for requests.
Event-scanner uses web3.js method for contract instances getPastEvents("allEvents") to fetch events and when even-scanner is running first time it starts {fromBlock: 0}. If event-scanner uses Infura as endpoint and contract already has a lot of logs and the amount of the results is more than 10000, event-scanner stops, because of the unhandled Promise.rejection.
Example that was reproduced with Infura and Testnet Operator contract:
The text was updated successfully, but these errors were encountered: