corpetty / py-etherscan-api

Python bindings to the Etherscan.io API
MIT License
511 stars 247 forks source link

blocks = api.get_all_blocks_mined(offset=10000, blocktype='uncles') tried this #89

Open kalkite opened 3 years ago

kalkite commented 3 years ago

OK page 1 added OK page 2 added OK page 3 added OK page 4 added OK page 5 added OK page 6 added OK page 7 added OK page 8 added


EmptyResponse Traceback (most recent call last)

in () ----> 1 blocks = api.get_all_blocks_mined(offset=10000, blocktype='uncles') /export/home/rkalak/.local/lib/python3.6/site-packages/etherscan/accounts.py in get_all_blocks_mined(self, blocktype, offset) 133 while True: 134 self.build_url() --> 135 req = self.connect() 136 print(req['message']) 137 if "No transactions found" in req['message']: /export/home/rkalak/.local/lib/python3.6/site-packages/etherscan/client.py in connect(self) 121 return data 122 else: --> 123 raise EmptyResponse(data.get('message', 'no message')) 124 raise BadRequest( 125 "Problem with connection, status code: %s" % req.status_code) EmptyResponse: