I dont know if this is a bug, or missing rate limits…
I’m trying to get all logs from block 6109481 on goerli (= https://goerli.etherscan.io/block/6109481) the request response is saying there are more then 10.000 results …?
In an other post i seen an engineer upping the amount of results from 1K to 10K is.
Would you mind sharing the request you are making? I suspect you are not using the toBlock parameter , so the toBlock parameter will default to latest. Basically you are trying to get all logs from block 6109481 to the latest one and you are hitting the 10k limit.
Actually now I am seeing that you are trying to get all logs from block 6109481 to 6114481. As I mentioned in my first reply we do have a 10K limit for results display and our logs service has a block-range hint when requests are too large.
The reason you received that suggestion is that the next block 6109482 (0x5D392A) has more than 10K logs and I am suggesting to query that one independently as well:
I want all events from block 6109481 but still i get more then 10K results error:
query returned more than 10000 results. Try with this block range [0x5D3929, 0x5D3929]
FYI i use the response to set a range to fetch logs from the blockchain. So i try to listen to the return values and then put those values in the options of getPastLogs.
If i look at the block explorer, i dont see more then 10K results, but still the infura RCP is giving this error.
That’s strange indeed, can you let me what was the block range you queried when you got the response Try with this block range [0x5D3935, 0x5D3934], as I couldn’t figure it out from your reply.
Thanks @nonation , the issue you spotted was fixed. Found it my self as well, when querying "params": [{"fromBlock": "0x5D3935", "toBlock":"0x5D3936"}], . Now when the logs are too large, like it happened for the ones in block 0x5D3935, the correct hint would be shown.