Bitcoin Forum
June 30, 2024, 10:13:54 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Invalid encoding error when importing private key in Bitcoin core  (Read 583 times)
tyz (OP)
Legendary
*
Offline Offline

Activity: 3360
Merit: 1533



View Profile
November 08, 2016, 02:53:12 PM
 #1

I tried to import private keys using the debug console in Bitcoin core client. I use the following command

Quote
importprivkey 5K... MyNewAddress

and I get the following error message

Quote
Invalid private key encoding (code -5)

Any idea what is wrong? A google search did not give me a hint.
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3444
Merit: 6733


Just writing some code


View Profile WWW
November 08, 2016, 03:17:28 PM
 #2

Your private key is incorrect in some way. That is what that message means. You are probably missing a character somewhere, maybe forgot to copy one at the end.

Velkro
Legendary
*
Offline Offline

Activity: 2296
Merit: 1014



View Profile
November 11, 2016, 12:53:13 AM
 #3

Your private key is incorrect in some way. That is what that message means. You are probably missing a character somewhere, maybe forgot to copy one at the end.
This one, or try including label so:
importprivkey yourPrivateKey "TheLabelThatYouWant"
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!