py-etherscan-api icon indicating copy to clipboard operation
py-etherscan-api copied to clipboard

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

Open rajeshkalakoti opened this issue 5 years ago • 1 comments

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: <Err: No transactions found>

rajeshkalakoti avatar Dec 10 '20 19:12 rajeshkalakoti