ape-etherscan icon indicating copy to clipboard operation
ape-etherscan copied to clipboard

Integrate Rate Limit into Etherscan query engine `.estimate_query` method [APE-738]

Open fubuloubu opened this issue 2 years ago • 0 comments
trafficstars

Overview

Some queries are heavy via Etherscan API, so we will want to add rate limit logic to the query engine in order to bypass selecting it (or modify the request) so it doesn't fail with a EtherscanTooManyRequestsError

Specification

  • [ ] Update EtherscanQueryEngine.estimate_query to factor in the rate limit
  • [ ] Update EtherscanQueryEngine.perform_query to respect the rate limit when performing queries

Dependencies

n/a

fubuloubu avatar Mar 21 '23 17:03 fubuloubu