I would like to receive all event logs for a particular topic of an event log. I know there is a limit of 10,000 records, but the getPastLogs function times-out when less than 2,500 records need to be retrieved:

    address: "0x75228dce4d82566d93068a8d5d49435216551599",
    topics: ["0xb2e65de73007eef46316e4f18ab1f301b4d0e31aa56733387b469612f90894df"],
    fromBlock: 1

The following error is displayed:

web3.min_1.36.js:1 Uncaught (in promise) Error: Returned error: query timeout exceeded

If I change the 'fromBlock' to 8000000, it returns the event logs without an error.

This is an intermittent problem. Sometimes it works without error when fromBlock is set to 1.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.