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

get_all_transactions leads to error in connect

Open rickyktan opened this issue 7 years ago • 6 comments

I have been trying to collect and plot all contributions that were sent to a crowdsale address (ZRX as example)

Sending a request using get_all_transactions function seems to be working (i.e. transactions are added and pages are being counted and added) until the Etherscan API returns the page with an empty response

{"status":"0","message":"No transactions found","result":[]}

This triggers an error in the connect function

rickyktan avatar May 31 '18 03:05 rickyktan

This will be fixed by #8 . I'll be working on this soon as I've picked this project up as part of another project I'm working on.

corpetty avatar Jan 04 '19 13:01 corpetty

any updates on this? ran into the same problem. guess the solution is quite simple by changing line 92ff in accounts.py to something like

try: 
    req = self.connect()
except EmptyResponse:
    print(
                    "Total number of transactions: {}".format(len(trans_list)))
    self.page = ''
    return trans_list

MarcelBeining avatar Mar 13 '19 11:03 MarcelBeining

Was out of town on holiday. Will pick this back up this week.

corpetty avatar Mar 14 '19 16:03 corpetty

Problem still not solved: raise EmptyResponse(data.get('message', 'no message')) etherscan.client.EmptyResponse: <Err: No transactions found>

MarekPas avatar Oct 19 '20 15:10 MarekPas