Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: KristianR1993 on May 23, 2018, 08:48:29 PM



Title: Can't sweep BTC to electrum or any other wallet / bitcoins stuck in address
Post by: KristianR1993 on May 23, 2018, 08:48:29 PM
The problem I'm facing is as follows;

I had a lot of money in paysafecard, which I turned into bitcoins on virwox.com. From that website I sent 0.0032 btc to a newly generated address on Bitcoin core - 3J2tCijTKQLd6jtf3nk8QTtLa73xkVhgfk. (https://blockchain.info/address/3J2tCijTKQLd6jtf3nk8QTtLa73xkVhgfk).

Now, what I didn't notice before sending to Bitcoin Core was the long syncing time, and I didn't have any space on my harddrive to download all the shit. Therefore, I went into the Bitcoin Core console:

- dumpprivkey 3J2tCijTKQLd6jtf3nk8QTtLa73xkVhgfk (didn't encrypt the wallet so I could type that command straight)

- got the private key

- tried to sweep it into electrum

- got error "No inputs found. Note that inputs need to be confirmed".

The private key was " Private Key WIF Compressed 52 characters base58, starts with a 'K' or 'L'", so I tried to convert it to an uncompressed WIF key, starting with 5K via bitaddress.org.

When I tried to sweep the btc to electrum with the new, uncompressed address, I got the same input error. Now, what's wierd is that when I check the address it does indeed have 0.0027 bitcoins on it. I double checked the privatekey many times through the Bitcoin Core console, and it's correct.

NOW, the issue I'm facing is that I uninstalled the Bitcoin Core client by mistake, and lost the address containing the bitcoins on the client. I do, however, still have the privatekey. Therefore, finishing Bitcoin Core syncing isn't an option.

Also, when I enter the privatekey into a wallet and get the address which it belongs to, I don't get the the same address that shows in bitcoin core - 3J2tCijTKQLd6jtf3nk8QTtLa73xkVhgfk.

VIDEO showing the issue here: https://i.gyazo.com/040dc198efe8ff43d53b41d8a9a3cb9e.mp4

When in Bitcoin Core, I generated a new address - 3CtkTu3Um53F2xriKGZn6wLcAHUuCoZQKD, got the privkey from the console, entered it into a wallet, and when the address corresponding to the privkey came up, it was a different one from the starting 3CtkTu3Um53F2xriKGZn6wLcAHUuCoZQKD. The new address was 1PNVUnBPv4E23Eh8MKTnoNbBV7qCkka9x4.

I suspect this is the same issue that I had with the original address.

Any suggestions as to what I can do in order to retrieve my bitcoins to electrum or any other wallet for that matter?


Title: Re: Can't sweep BTC to electrum or any other wallet / bitcoins stuck in address
Post by: LoyceV on May 23, 2018, 09:00:11 PM
I had a lot of money in paysafecard, which I turned into bitcoins on virwox.com. From that website I sent 0.0032 btc to a newly generated address on Bitcoin core - 3J2tCijTKQLd6jtf3nk8QTtLa73xkVhgfk. (https://blockchain.info/address/3J2tCijTKQLd6jtf3nk8QTtLa73xkVhgfk).
There's 0.0027BTC in that address (I assume Virwox took 0.0005BTC in fee).

Quote
- dumpprivkey 3J2tCijTKQLd6jtf3nk8QTtLa73xkVhgfk (didn't encrypt the wallet so I could type that command straight)

- got the private key

- tried to sweep it into electrum

- got error "No inputs found. Note that inputs need to be confirmed".
You're using a SegWit address. The private key is still the same, but you'll need another approach.

The easiest is to follow this [GUIDE] Importing Electrum Segwit Private Key Into Bitcoin Core (And Vice Versa) (https://bitcointalk.org/index.php?topic=3383265.0):
How To Import Segwit WIF from Bitcoin Core to Electrum
This one is simple to do.
NB: For this to work you need to be on Electrum version 3.1.1 and above

For P2SH-P2WPKH addresses (Addresses starting with "3")
Just add p2wpkh-p2sh: directly in front of your  private key.
For example
Code:
p2wpkh-p2sh:5BitcoinPrivateKey
This should generate the corresponding p2wpkh-p2sh bitcoin address.


Title: Re: Can't sweep BTC to electrum or any other wallet / bitcoins stuck in address
Post by: KristianR1993 on May 23, 2018, 09:03:18 PM
Dude.
DUDE.
DUUUUUDE.  ;D ;D ;D ;D ;D ;D ;D ;D :D :D :D :D :D :D :D :D :D :D

I will......, thanks so much holy shit. I've spent like literally 20 hours + just trying to find a solution to this and it was this fucking simple all along. HOLY. FUCKING. SHIT.


Title: Re: Can't sweep BTC to electrum or any other wallet / bitcoins stuck in address
Post by: LoyceV on May 23, 2018, 09:05:46 PM
I will......, thanks so much holy shit. I've spent like literally 20 hours + just trying to find a solution to this and it was this fucking simple all along. HOLY. FUCKING. SHIT.
You're welcome:)

Welcome to the forum :D