Author

Topic: How to get Public Key from Wallet Address (Read 6219 times)

legendary
Activity: 2730
Merit: 7065
Farewell, Leo. You will be missed!
June 15, 2021, 04:32:48 AM
#12
@TheArchaeologist
You are replying to a user who created this thread in June 2014 and hasn't been active on the forum since September 2014. It is safe to assume that he will not provide you any set of addresses because he stopped using Bitcointalk a long time ago. Wink
sr. member
Activity: 306
Merit: 727
---------> 1231006505
Hello

I am looking for a way to get public key by knowing a wallet address. Can somebody help me? Thanks!
Are/were you looking for a specific set of addresses or was your question more in general? If you are looking for a limited number (say smaller than 100,000 addresses) I can hook you up with that information if you can provide me with a list of addresses. However these will be limited to addresses used for sending at least once, with the exception of P2PK "addresses".
legendary
Activity: 1568
Merit: 6660
bitcoincleanup.com / bitmixlist.org
for address in addresses:
    if address == '':
        continue

    response = requests.get('https://blockchain.info/q/pubkeyaddr/' + address)
~

Considering your input size, this is going to get you throttled or blocked by blockchain.info VERY quickly unless you place a time.sleep() after the request is made.
newbie
Activity: 8
Merit: 0
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........
member
Activity: 114
Merit: 10
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)
sr. member
Activity: 434
Merit: 250
A Bitcoin address includes a hash of the Public Key and a checksum to prevent mistypes from being accepted as valid addresses. The Public Key is disclosed when you spend Bitcoin from an address but not when you receive Bitcoins to that address.
legendary
Activity: 1358
Merit: 1000
https://gliph.me/hUF

If that address was ever spent from the public key will show up at blockexplorer.com .
legendary
Activity: 3360
Merit: 4570
Hello

I am looking for a way to get public key by knowing a wallet address. Can somebody help me? Thanks!

I've been trying to find a way to do this too.  Please PM me if you found a way Smiley

PM sent.
legendary
Activity: 1264
Merit: 1008
Hello

I am looking for a way to get public key by knowing a wallet address. Can somebody help me? Thanks!

I've been trying to find a way to do this too.  Please PM me if you found a way Smiley
legendary
Activity: 3360
Merit: 4570
If you have the private key, you can get the public key.

If bitcoins that were received at that address have ever been sent elsewhere, then you can find the public key in the blockchain.

If you have any message that was signed using the private key from that address, then you can get the public key from the signature.

If all you have is the bitcoin address, then it is not possible to get the public key.
legendary
Activity: 2053
Merit: 1354
aka tonikt
Address is a hash of a public key - you cannot get it out from it just like that.
full member
Activity: 140
Merit: 100
POOL.MN - we mine the hottest coins!
Hello

I am looking for a way to get public key by knowing a wallet address. Can somebody help me? Thanks!
Jump to: