0

Trying to import a paper wallet to bitcoin core, while not having a fully synced node.

I've used: importprivkey 1Lblablablablabla "MyLabel" false It returns "null", which I understand means successful import.

But then when I use dumpprivkey with the associated public address, it says there is no private key associated with the address.

I also look in the GUI and can't find any clue as to where that private key has been imported.

So basically the wallet is not giving me errors of failed import, but also not actually importing the private key. What should I do?

RedGrittyBrick
  • 26,841
  • 3
  • 25
  • 51
Pineapple29
  • 119
  • 6
  • What command did you use to import the key? It sounds like you just imported a bitcoin address, not a private key. – chytrik Mar 02 '21 at 22:57
  • I wrote the exact command, importprivkey "private_key" (without the quotes). I'm not going to write the actual private key here, obviously. – Pineapple29 Mar 02 '21 at 23:44
  • 1
    does the private key you imported start with a '1'? If so, that sounds like it is a bitcoin address, not a privkey. You are right to not post what the privkey is exactly, but it may be helpful to describe it (ie, what character does it start with? how long of a string is it?), to ensure you're attempting to import a key with the correct format. – chytrik Mar 03 '21 at 02:03
  • Compare the length, mix of character types and initial character of your private key value with examples in private key and address - this will help you discover if the value you have is one or the other. Also any small mistake in typing will be important. – RedGrittyBrick Mar 03 '21 at 12:54
  • It starts with L3y... I can see how my first example key written here was misleading starting with a 1. But I am using a proper private key for sure.. – Pineapple29 Mar 03 '21 at 14:17
  • 1
    Does dumpwallet show anything relevant? – RedGrittyBrick Mar 03 '21 at 14:24
  • Actually yes I manage to see the imported private key in that dump file! – Pineapple29 Mar 03 '21 at 14:36
  • Ok from the dump file it's clear that I was using the wrong PUBLIC address and that's why it didn't give me a private key back... thank you! – Pineapple29 Mar 03 '21 at 14:46

1 Answers1

0

You can use dumpwallet to examine the wallet's contents after importing the private key.

(for completeness, since comments are disposable)

RedGrittyBrick
  • 26,841
  • 3
  • 25
  • 51