Open shazow opened 1 month ago
Etherscan has fairly tight API limits these days (5 reqs per second), and tests often fail because of it.
Would be nice to have retries and throttling for the fetch, but also not excited about implementing/maintaining this yet again.
fetch
But it would need to have a fairly small impact on the bundle size (currently ~14kb, so ideally not more than a couple kb?).
Perhaps use https://github.com/sindresorhus/ky?
Another option is to pull in a part of viem/ethers who might have respective helpers.
Etherscan has fairly tight API limits these days (5 reqs per second), and tests often fail because of it.
Would be nice to have retries and throttling for the
fetch
, but also not excited about implementing/maintaining this yet again.But it would need to have a fairly small impact on the bundle size (currently ~14kb, so ideally not more than a couple kb?).
Perhaps use https://github.com/sindresorhus/ky?
Another option is to pull in a part of viem/ethers who might have respective helpers.