Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verify needs to honor API rate limits #486

Open
mwawrusch opened this issue Sep 27, 2023 · 1 comment
Open

Verify needs to honor API rate limits #486

mwawrusch opened this issue Sep 27, 2023 · 1 comment

Comments

@mwawrusch
Copy link

mwawrusch commented Sep 27, 2023

Describe the bug
Running into API limits with basescan (5 per second) when verifying contracts while some contracts have already been deployed before. E.g. we get an immediate repsonse, and doing this 6 times triggers a 403

To reproduce:

  • deploy and verify say 10 contracts. Then add another contract and deploy. Then verify. This loops through all the previously verified contracts and checks if they have been deployed which consumes API request at too fast a rate.

Solution

  • just sleep for 400ms between each API call. Or listen for 403 errors and back off.
@mwawrusch
Copy link
Author

Never mind, looks like there is a VERY WELL hidden --sleep 500 option.

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

No branches or pull requests

1 participant