Post
Topic
Board Development & Technical Discussion
Re: How to get Public Key from Wallet Address
by
gsciservices
on 05/06/2021, 18:14:29 UTC
You can only find it if someone has used it on the blockchain, and spent those satoshis. Or you generate it completely randomly yourself(good luck)



Please see the bellow python script:



import time
import requests

addresses = open('addr.txt', 'r').read().split('\n')

for address in addresses:
    if address == '':
        continue

    response = requests.get('https://blockchain.info/q/pubkeyaddr/' + address)
    if response.status_code == 200:
        if response.text != '':
            open('pubkeys.txt', 'a').write(address + ' : ' + response.text+"\n")



Good Luck & hope you will enjoy it smoothly........