Please, don't post images
Please, use proper tags when post code, traceback, output, etc.
See BBcode help for more info.
Unfortunately I don't see what else could be suggested.
Also , the indentation I have tried to fix is not correct and should be:
Please, use proper tags when post code, traceback, output, etc.
See BBcode help for more info.
Unfortunately I don't see what else could be suggested.
Also , the indentation I have tried to fix is not correct and should be:
!/usr/bin/python from pybitcoin import BitcoinPrivateKey import requests import json FILE_PATH = r'ТУТ ВРУЧНУЮ ВВЕДИ ПУТЬ ДО ФАЙЛА С КЛЮЧАМИ' with open(FILE_PATH) as f: keys = f.read().splitlines() for key in keys: private_key = BitcoinPrivateKey(private_key=key.strip()) public_key = private_key.public_key() address = public_key.address() r = requests.get('https://chain.so/api/v2/address/BTC/{}'.format(address)) print ('Address: {} Private Key: {} Balance: {}'.format(address, key, (json.loads(r.content)['data']['balance'])))Note it's not related to your problem
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs