Bitcoin Forum
June 15, 2024, 10:27:32 AM *
News: Voting for pizza day contest
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Show Every Private Key In Bitcoin Core Wallet  (Read 1082 times)
LFC_Bitcoin (OP)
Legendary
*
Offline Offline

Activity: 3570
Merit: 9745


#1 VIP Crypto Casino


View Profile
July 26, 2017, 11:52:41 AM
 #1

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)

.
.BITCASINO.. 
.
#1 VIP CRYPTO CASINO

▄██████████████▄
█▄████████████▄▀▄▄▄
█████████████████▄▄▄
█████▄▄▄▄▄▄██████████████▄
███████████████████████████████
████▀█████████████▄▄██████████
██████▀██████████████████████
████████████████▀██████▌████
███████████████▀▀▄█▄▀▀█████▀
███████████████████▀▀█████▀
 ▀▀▀▀▀▀▀██████████████
          ▀▀▀████████
                ▀▀▀███

.
......PLAY......
DannyHamilton
Legendary
*
Offline Offline

Activity: 3430
Merit: 4658



View Profile
July 26, 2017, 02:14:48 PM
 #2

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.
LFC_Bitcoin (OP)
Legendary
*
Offline Offline

Activity: 3570
Merit: 9745


#1 VIP Crypto Casino


View Profile
July 26, 2017, 03:56:40 PM
 #3

DannyHamilton, as usual you're a star. Thank you for that Smiley

.
.BITCASINO.. 
.
#1 VIP CRYPTO CASINO

▄██████████████▄
█▄████████████▄▀▄▄▄
█████████████████▄▄▄
█████▄▄▄▄▄▄██████████████▄
███████████████████████████████
████▀█████████████▄▄██████████
██████▀██████████████████████
████████████████▀██████▌████
███████████████▀▀▄█▄▀▀█████▀
███████████████████▀▀█████▀
 ▀▀▀▀▀▀▀██████████████
          ▀▀▀████████
                ▀▀▀███

.
......PLAY......
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4316

<insert witty quote here>


View Profile
July 27, 2017, 04:09:30 AM
Last edit: July 27, 2017, 04:24:44 AM by HCP
 #4

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!

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!