Skip to content

Conversation

aaronbuchwald
Copy link
Contributor

Using the free tier limit of Alchemy, the block range limit enforces that the number of blocks requested is < 500, not <= 500.

This results in the following logs when attempting to run the bento proving benchmark and fetch an old request ID:

Running:

boundless --rpc-url $RPC_URL proving benchmark --request-ids 0xc2db89b2bd434ceac6c74fbc0b2ad3a280e66db0140a95ab

Here's the request/response body:

Req:

{"method":"eth_getLogs","params":[{"fromBlock":"0x1be4213","toBlock":"0x1be4407","address":"0x6b7aba661041164b8db98e30ae1454d2e9d5f14b","topics":["0x514a642174f202700c54726383c13321326925ff87df30f0bfbf49d9adfc41a6","0x0000000000000000c2db89b2bd434ceac6c74fbc0b2ad3a280e66db0140a95ab"]}],"id":2,"jsonrpc":"2.0"}

Res:

{"jsonrpc":"2.0","id":2,"error":{"code":-32600,"message":"You can make eth_getLogs requests with up to a 500 block range. Based on your parameters, this block range should work: [0x1be4213, 0x1be4406]"}}

This PR updates to use 499 instead (unfortunately non-round number) to comply with the Alchemy free tier limit as per the existing comment. This also updates the last updated date documenting the Alchemy free tier limitation.

@aaronbuchwald aaronbuchwald requested a review from a team as a code owner August 3, 2025 23:11
@nategraf nategraf merged commit 77b9e74 into risc0:main Aug 5, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants