I don't want to spend transaction fee for transferring coins to unencrypted wallet.dat.

What should I do?

  • Are you using the Bitcoin Core client, or something else? Jan 5 '15 at 15:32
  • I use bitcoin-qt-0.8.5.ebuild and it's integrated console in debug window
    – R2D4
    Jan 6 '15 at 7:26
  • Seems like there should be an easier way to do this than what Mark S proposed. Maybe it's on the core dev's to-do list.
    – morsecoder
    Jan 8 '15 at 20:43

The easiest way is to export your private keys using the dumpprivkey functionality.

DumpPrivKey: returns the wallet-import-format (WIP) private key corresponding to an address. (But does not remove it from the wallet.) Bitcoin Developer Reference

Do this for each address that is storing bitcoin (use listreceivedbyaddress to view all addresses with funds)

ListReceivedByAddress: lists the total number of bitcoins received by each address. Bitcoin Developer Reference

Then create a backup copy of your wallet.dat file and then remove it. The next time bitcoin-qt runs it will create a new empty unencrypted wallet. Now you can use importprivkey to restore your funds.

ImportPrivKey: adds a private key to your wallet. The key should be formatted in the wallet import format created by the dumpprivkey RPC. Bitcoin Developer Reference

  • I don't understood, how to "Do dumpprivkey on each address that is storing coins"
    – R2D4
    Jan 7 '15 at 6:39
  • I edited my answer to include information about listreceivedbyaddress which will list all of your addresses that currently hold funds
    – Mark S.
    Jan 8 '15 at 0:13
  • It won't list change addresses, though, will it? Be careful you don't lose those, probably should make sure to keep that back up in case.
    – morsecoder
    Jan 8 '15 at 20:40
  • listreceivedbyaddress shows all received coins. But I need only unspent (remaining) coins. I found <b>listunspent</b> command
    – R2D4
    Jan 11 '15 at 11:39
  • And before printing keys, the wallet should be unlocked with [b]walletpassphrase[/b] command
    – R2D4
    Jan 11 '15 at 11:45

You can make a paper wallet from actual addresses, then delete wallet.dat, create new one and import paper wallets on created unencypted wallet.dat file.

But you must to remember about the "change address" mechanism because you can lose your bitcoins forever.

  • 1
    What do you mean by "rest mechanism?"
    – Nick ODell
    Jan 5 '15 at 15:57
  • This doesn't seem directly useful to the OP since bitcoin-qt doesn't provide the ability to either create or import paper wallets. Perhaps you should explain in detail how to achieve these steps. Jan 6 '15 at 7:35
  • rest mechanism I mean "change address" mechanism - sorry I am not english native speaker Jan 7 '15 at 9:06
  • 1
    Nate - it is enought to have installed QR code software and use your brain a little bit (ctrl+c ctrl+v) to have this ability in bitcoin-qt also. Jan 7 '15 at 9:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.