Recover your namecoins sent to bitcoin addresses

Post Reply
jackjack
Posts: 17
Joined: Tue Jul 26, 2011 4:12 pm
os: linux

Recover your namecoins sent to bitcoin addresses

Post by jackjack »

I posted that on the bitcoin forum too, but it may be more useful here

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 and exit namecoind
1. In console 'cd /path/to/pywallet/'
2. Run './pywallet.py --dumpwallet' and find

Code: Select all

        {
            "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

Post Reply