Closed stin7 closed 3 years ago
(confirmed that adding sleep(0.1)
as the first line in make_api_request()
works, if hacky)
{"status":"0","message":"NOTOK","result":"Max rate limit reached"}
I'm wondering what 'NOTOK' means. Are you using it without an API token?
I did use a token - and when I added the sleep call it worked fine. So NOTOK seems misleading on their end.
Added a configurable delay between the requests: block_explorer_api_request_delay
:
https://github.com/xuhcc/beancount-ethereum-importer/blob/master/config.json.example
Thanks for publishing this.
I get an error about exceeding the rate limit:
On the etherscan page, it looks like the limit is 5 calls/s
Perhaps we can add a backoff, or hardcode the rate limit. For now I will try a hack with
sleep
...