Bitcoin Forum
March 14, 2026, 02:52:15 PM *
News: Latest Bitcoin Core release: 30.2 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Solved: Getting the private key of an address created from the command line ?  (Read 711 times)
MoreBloodWine (OP)
Legendary
*
Offline Offline

Activity: 1064
Merit: 1001


View Profile
December 31, 2014, 02:25:31 PM
Last edit: December 31, 2014, 03:55:59 PM by MoreBloodWine
 #1

Ok, so I have a node running and I'm working on something which required me to make an address using (bitcoind getaccountaddress "Test") at the command line, obviously not including the parenthesis.

Anyway, it got me to thinking, if something ever happens to my node, the coins in that address no matter the amount are "lost". Is there a way for me to export the private key of address Test so I can save it in however many locations I like ?

Ty.

To be decided...
DannyHamilton
Legendary
*
Offline Offline

Activity: 3738
Merit: 5391



View Profile
December 31, 2014, 02:29:48 PM
 #2

Well, to start with, you should be maintaining regular backups of the wallet in multiple secure locations.  As long as you are doing that, you should be able to recover access to the bitcoins.

If for some reason you actually want the private key, you can use "dumpprivkey".

If you want a list of all the addresses in the wallet that have received bitcoins which haven't yet been spent, you can use "listunspent".

dabura667
Sr. Member
****
Offline Offline

Activity: 475
Merit: 317


View Profile
December 31, 2014, 03:39:33 PM
 #3

Back up the whole wallet.dat file.

In multiple places.

My Tip Address:
1DXcHTJS2DJ3xDoxw22wCt11FeAsgfzdBU
DannyHamilton
Legendary
*
Offline Offline

Activity: 3738
Merit: 5391



View Profile
December 31, 2014, 03:45:32 PM
 #4

Back up the whole wallet.dat file.

In multiple places.

Already been said.  Your post adds nothing to the conversation.

Well, to start with, you should be maintaining regular backups of the wallet in multiple secure locations.
- snip -
MoreBloodWine (OP)
Legendary
*
Offline Offline

Activity: 1064
Merit: 1001


View Profile
December 31, 2014, 03:55:24 PM
 #5

Well, to start with, you should be maintaining regular backups of the wallet in multiple secure locations.  As long as you are doing that, you should be able to recover access to the bitcoins.

If for some reason you actually want the private key, you can use "dumpprivkey".

If you want a list of all the addresses in the wallet that have received bitcoins which haven't yet been spent, you can use "listunspent".


I'm following all suggestions but I still wanted the private key so I could add the wallet to my phones block chain app / account.

Thx.

To be decided...
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!