質問編集履歴

3

追加修正

2019/02/21 05:36

投稿

cloud_color
cloud_color

スコア7

test CHANGED
File without changes
test CHANGED
@@ -64,9 +64,35 @@
64
64
 
65
65
  以下を参考にget_all_transactionsを実行しました
66
66
 
67
+ https://github.com/corpetty/py-etherscan-api/blob/master/examples/accounts/get_all_transactions.py
68
+
67
69
  ```python
68
70
 
69
- from etherscan.accounts import Account import json with open('../../api_key.json', mode='r') as key_file: key = json.loads(key_file.read())['key'] address = '0x49edf201c1e139282643d5e7c6fb0c7219ad1db7' api = Account(address=address, api_key=key) transactions = api.get_all_transactions(offset=10000, sort='asc', internal=False) print(transactions[0])
71
+ from etherscan.accounts import Account
72
+
73
+ import json
74
+
75
+
76
+
77
+ with open('../../api_key.json', mode='r') as key_file:
78
+
79
+ key = json.loads(key_file.read())['key']
80
+
81
+
82
+
83
+ address = '0x49edf201c1e139282643d5e7c6fb0c7219ad1db7'
84
+
85
+
86
+
87
+ api = Account(address=address, api_key=key)
88
+
89
+ transactions = api.get_all_transactions(offset=10000, sort='asc',
90
+
91
+ internal=False)
92
+
93
+
94
+
95
+ print(transactions[0])
70
96
 
71
97
  ```
72
98
 

2

質問への追記・修正の依頼反映

2019/02/21 05:36

投稿

cloud_color
cloud_color

スコア7

test CHANGED
File without changes
test CHANGED
@@ -1,3 +1,5 @@
1
+ ・なにがしたいのか
2
+
1
3
  以下を実行するとAPIから情報を取得できるのですが、
2
4
 
3
5
  page_no=1だけでなく一括でAPI上の全件データを取得する方法はあるのでしょうか?
@@ -55,3 +57,25 @@
55
57
  df.to_csv('txes.tsv',sep='\t')
56
58
 
57
59
  ```
60
+
61
+
62
+
63
+ ・なにを試したのか
64
+
65
+ 以下を参考にget_all_transactionsを実行しました
66
+
67
+ ```python
68
+
69
+ from etherscan.accounts import Account import json with open('../../api_key.json', mode='r') as key_file: key = json.loads(key_file.read())['key'] address = '0x49edf201c1e139282643d5e7c6fb0c7219ad1db7' api = Account(address=address, api_key=key) transactions = api.get_all_transactions(offset=10000, sort='asc', internal=False) print(transactions[0])
70
+
71
+ ```
72
+
73
+ ・なにが問題なのか
74
+
75
+ 不明
76
+
77
+
78
+
79
+ ・なんのエラーが出ているのか
80
+
81
+ ****MacBook-Pro:accounts home$ python get_all_transactions.py page 1 added Traceback (most recent call last): File "get_all_transactions.py", line 11, in <module> internal=False) File "/anaconda3/lib/python3.6/site-packages/py_etherscan_api-0.8.0-py3.6.egg/etherscan/accounts.py", line 92, in get_all_transactions File "/anaconda3/lib/python3.6/site-packages/py_etherscan_api-0.8.0-py3.6.egg/etherscan/client.py", line 123, in connect etherscan.client.EmptyResponse: <Err: No transactions found>

1

質問への追記・修正の依頼対応

2019/02/21 05:35

投稿

cloud_color
cloud_color

スコア7

test CHANGED
File without changes
test CHANGED
File without changes