Python 仅限获取以太坊余额结果
我想扫描我的以太坊地址列表,如果有, 但当我运行代码时,它只显示有限的地址余额,大多数情况下只显示6个地址的结果Python 仅限获取以太坊余额结果,python,python-3.x,python-2.7,ethereum,ethereumj,Python,Python 3.x,Python 2.7,Ethereum,Ethereumj,我想扫描我的以太坊地址列表,如果有, 但当我运行代码时,它只显示有限的地址余额,大多数情况下只显示6个地址的结果 from etherscan.accounts import Account list = "adr.txt" with open(list, 'r') as f: for line in f: address = line.rstrip() api = Account(address=address, a
from etherscan.accounts import Account
list = "adr.txt"
with open(list, 'r') as f:
for line in f:
address = line.rstrip()
api = Account(address=address,
api_key='API KEY')
balance = api.get_balance()
print(address, (int(balance) / 1000000000000000000))
if (int(balance) / 1000000000000000000 == 0):
continue
else:
print("EUREKA...EUREKA...EUREKA...")
print(address, (int(balance) / 1000000000000000000),
file=open("result.txt", "a"))
结果如下: