<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://en.bitcoin.it/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Droleary</id>
	<title>Bitcoin Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://en.bitcoin.it/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Droleary"/>
	<link rel="alternate" type="text/html" href="https://en.bitcoin.it/wiki/Special:Contributions/Droleary"/>
	<updated>2026-04-12T09:04:20Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=Safely_Transfer_Bitcoin_from_a_wallet.dat_File_to_Anywhere,_Using_Air-Gapped_Offline_System,_Bitcoin_Core,_and_Electrum&amp;diff=64231</id>
		<title>Safely Transfer Bitcoin from a wallet.dat File to Anywhere, Using Air-Gapped Offline System, Bitcoin Core, and Electrum</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=Safely_Transfer_Bitcoin_from_a_wallet.dat_File_to_Anywhere,_Using_Air-Gapped_Offline_System,_Bitcoin_Core,_and_Electrum&amp;diff=64231"/>
		<updated>2017-11-15T03:49:40Z</updated>

		<summary type="html">&lt;p&gt;Droleary: Fixed a couple typos&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This guide is intended for former users of [[Bitcoin Core]] who wish to very securely transfer Bitcoin from an archived wallet.dat file into a new secure storage target (e.g. hardware wallet) using a process that keeps all private keys off of any online computer.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;WARNING&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Before reading this page, users should note that directly manipulating ECDSA [[private keys]] is dangerous and can result in losing bitcoins&amp;lt;ref&amp;gt;[https://bitcoin.stackexchange.com/questions/29948/why-doc-says-importing-private-keys-is-so-dangerous Bitcoin StackExchange - Why doc says importing private keys is so dangerous?]&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;[https://bitcoin.stackexchange.com/questions/18619/why-so-many-warnings-about-importing-private-keys Bitcoin StackExchange - Why so many warnings about importing private keys?]&amp;lt;/ref&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Goal ==&lt;br /&gt;
* Safely sweep Bitcoin from a wallet.dat file and send to a new address.&lt;br /&gt;
* Never allow wallet.dat or any private keys to touch online computer.&lt;br /&gt;
* Use GUI tools that minimize complication and potential for mistake.&lt;br /&gt;
&lt;br /&gt;
== Why ==&lt;br /&gt;
* You are paranoid and don&#039;t trust the security of your online computer.&lt;br /&gt;
* You have a hardware wallet or other secure means of storing Bitcoin.&lt;br /&gt;
* You like doing things in a more complicated way than otherwise necessary by more trusting folk.&lt;br /&gt;
* You aren&#039;t comfortable manually building [[ Raw Transactions ]] from UTXOs and playing with big opaque hex strings.&lt;br /&gt;
&lt;br /&gt;
== Read This First ==&lt;br /&gt;
Less paranoid people may find the following article simpler and easier, which also describes in more detail obtaining the relevant software and other basic topics:&lt;br /&gt;
* [[ Transferring coins from Bitcoin-Qt to Electrum ]]&lt;br /&gt;
Less paranoid people seeking to move Bitcoin from a wallet.dat to another address may also simply use Bitcoin Core itself directly, bypassing all complexity of offline transactions.&lt;br /&gt;
&lt;br /&gt;
== Ingredients ==&lt;br /&gt;
The following ALL-CAPS terms are introduced here and used below consistently.&lt;br /&gt;
* NET-PC     : An online computer with potential malware.&lt;br /&gt;
* OFFLINE-PC : A secure offline computer without network access.&lt;br /&gt;
* USB-STICK  : A USB stick to transfer files over air gap.&lt;br /&gt;
* WALLET.DAT : A high value wallet.dat file stored offline.&lt;br /&gt;
&lt;br /&gt;
== Software (always verify signatures!) ==&lt;br /&gt;
* [[ Electrum ]]: Installed on both NET-PC and OFFLINE-PC.&lt;br /&gt;
* [[Bitcoin Core]]: Installed on OFFLINE-PC only.&lt;br /&gt;
&lt;br /&gt;
== Instructions ==&lt;br /&gt;
# OFFLINE-PC [Bitcoin Core] Dump addresses from wallet.dat using at least (NOTE: this part needs review - how best to simply and reliably list all addresses?):&lt;br /&gt;
## &amp;lt;code&amp;gt;listreceivedbyaddress 0 true&amp;lt;/code&amp;gt;&lt;br /&gt;
## &amp;lt;code&amp;gt;listaddressgroupings&amp;lt;/code&amp;gt;&lt;br /&gt;
# Copy addresses to NET-PC via USB-STICK.&lt;br /&gt;
# NET-PC [Electrum] Create &amp;quot;Watch Bitcoin Addresses&amp;quot; wallet using exported addresses. See which have balances.&lt;br /&gt;
# OFFLINE-PC [Bitcoin Core] Dump each private key from wallet.dat: &amp;lt;code&amp;gt;dumpprivkey &amp;quot;$ADDR&amp;quot;&amp;lt;/code&amp;gt;.&lt;br /&gt;
# OFFLINE-PC [Electrum] Create &amp;quot;Standard Wallet&amp;quot; with &amp;quot;Use public or private keys&amp;quot; using (copy/paste) desired private keys.&lt;br /&gt;
# NET-PC [Electrum] Generate transactions and save them to USB-STICK.&lt;br /&gt;
# OFFLINE-PC [Electrum] Sign transactions and save them back to USB-STICK.&lt;br /&gt;
# NET-PC [Electrum] Broadcast transactions from USB-STICK.&lt;br /&gt;
# OFFLINE-PC: Wipe drive.&lt;br /&gt;
&lt;br /&gt;
== Simplifications for sweeping a paper wallet ==&lt;br /&gt;
If you have a paper wallet (with private key and address written on it) instead of a wallet.dat file, you may simplify the instructions as follows:&lt;br /&gt;
* No need to install Bitcoin Core on OFFLINE-PC.&lt;br /&gt;
* Skip steps 1 and 2, and use address directly in step 3.&lt;br /&gt;
* Skip step 4, and use private key directly in step 5.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Instructional]]&lt;/div&gt;</summary>
		<author><name>Droleary</name></author>
	</entry>
</feed>