Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: jackjack on July 26, 2011, 09:00:24 PM



Title: [GUIDE] Recover your namecoins (and testnetcoins) sent to bitcoin addresses
Post by: jackjack on July 26, 2011, 09:00:24 PM
Your namecoin sending wallet is at /home/jackjack/wallet.dat
Your bitcoin receiving wallet is in your default bitcoin directory (if not, use pywallet --datadir option)

0. Download my pywallet fork (https://github.com/jackjack-jj/pywallet) and exit namecoind
1. In console 'cd /path/to/pywallet/'
2. Run './pywallet.py --dumpwallet' and find
Code:
        {
            "addr": "The Bitcoin Address you sent namecoins to",
            "hexsec": "privatehexkey64characterslong",
            "label": "",
            "sec": "5xxxxxxx"
        }
3. Run './pywallet.py --importprivkey "privatehexkey64characterslong" --importhex --namecoin --datadir /home/jackjack/' (if testnetcoins, replace --namecoin with --testnet)
4. Restart namecoind with the rescan flag

Your coins are now again in your Namecoin wallet, and you can even use that Bitcoin address as a Namecoin address
I hope this will help someone one day


Title: Re: [GUIDE] Recover your namecoins (and testnetcoins) sent to bitcoin addresses
Post by: Fakeman on July 29, 2011, 11:51:45 AM
I absentmindedly sent a few NMC to an address generated by bitparking to deposit BTC. Can your trick work in this case or do I need to have control of the bitcoin address the coins were sent to? Where does "privatehexkey64characterslong" come from?


Title: Re: [GUIDE] Recover your namecoins (and testnetcoins) sent to bitcoin addresses
Post by: jackjack on July 29, 2011, 03:27:31 PM
Indeed, you need to control the bitcoin address to do that trick

But the bitparking admin is used to recover those coins, just send him a mail with the details he asks: http://dot-bit.org/forum/viewtopic.php?p=1337#p1337


Title: Re: [GUIDE] Recover your namecoins (and testnetcoins) sent to bitcoin addresses
Post by: Fakeman on July 29, 2011, 09:38:58 PM
Ok thanks, I thought they were just gone.


Title: Re: [GUIDE] Recover your namecoins (and testnetcoins) sent to bitcoin addresses
Post by: truckingeek on April 28, 2012, 03:31:10 AM
Woohoo!  Many thanks!