Author

Topic: Show Every Private Key In Bitcoin Core Wallet (Read 1103 times)

HCP
legendary
Activity: 2086
Merit: 4361
I'm not sure if this works in the HD version of the Bitcoin Core wallet ( I haven't tried it yet), but I assume it does.  It definitely should work if you haven't switched to HD yet.

Entering the following in the console:
Code:
dumpprivkey 1ABitcoinAddressGoesHere
will give you the private key for the bitcoin address if your wallet has the private key

Just FYI, it will work if you are using an HD wallet... also, the "dumpwallet" command will give you everything in one go... it will dump the "extended private masterkey" and all the keys/addresses and derivation paths into a text file:
Quote
# Wallet dump created by Bitcoin v0.14.2
# * Created on 2017-07-27T04:05:43Z
# * Best block at time of backup was 11832 (000000005b9214c4d9d99898611bf43a91ba671f0541d2e50090dd5c410198cf),
#   mined on 2009-04-22T04:57:32Z

# extended private masterkey: xprv9s21ZrQH143K43qu96Djj54GS7zzG9uhMmU9gABH7MNmwwMwLQyffoMkabosk1xDcHLfSZV3kUY wKVvovKuDEtzT99XRcBJjtUQ4RiSBaG7

L3aiVXi12rhosNWDzoEfaxUj4nGsD2tti5GHV1yfADxu3DmUcUaA 2017-07-14T00:06:28Z change=1 # addr=115jNSpywutcZWawCKCcMcAAWVctVCXEUh hdkeypath=m/0'/0'/40'
L3bFVw3EXq1PZPzi5AN3i7HZTDkbguA1c6pDa3xDdkZ9qcsauNcq 2017-07-14T00:06:28Z change=1 # addr=172v1xmZS9xci4Zza6CiqQdrdBBF1hQZ5 hdkeypath=m/0'/0'/45'
KwGxZRDUdQdoi9v1tUxwbzt7p7BXj5JpPGNn3ACw16KR8Qv1tuoo 2017-07-14T00:06:28Z change=1 # addr=139kcSJqvr6UJJLWQGXCmuvsRaYbAPuxRH hdkeypath=m/0'/0'/8'


EDIT: Obviously, you will need to take necessary safety precautions... not only with the text file, but in generating it... "dumpprivkey" displays the key in the console... so it exists in memory and on screen, it will only be on disk if it gets paged out of memory... "dumpwallet" dumps it onto a file on your disk in plaintext.

This should not be done without due consideration of the implications this has on your private key security!
legendary
Activity: 3556
Merit: 9709
#1 VIP Crypto Casino
DannyHamilton, as usual you're a star. Thank you for that Smiley
legendary
Activity: 3472
Merit: 4801
I'm not sure if this works in the HD version of the Bitcoin Core wallet ( I haven't tried it yet), but I assume it does.  It definitely should work if you haven't switched to HD yet.

Entering the following in the console:
Code:
dumpprivkey 1ABitcoinAddressGoesHere
will give you the private key for the bitcoin address if your wallet has the private key

Entering the following in the console:
Code:
listunspent
Will give you the list of unspent outputs that your wallet knows about and the associated bitcoin addresses.
legendary
Activity: 3556
Merit: 9709
#1 VIP Crypto Casino
Bit of an embarrassing noob question but with the uncertainty around 1st August I want to know how I can see the private key to every address in my wallet.

I have xx bitcoin's in my wallet, any way I can't remember how many coins are in each address. To be honest I can't even remember how many addresses I've used so simple for most of you but dumb question.

Is there a way I can see all the private keys of addresses in my wallet (eapecially those that have bitcoin's in them)
Jump to: