<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://en.zaoniao.it/index.php?action=history&amp;feed=atom&amp;title=How_to_import_private_keys</id>
	<title>How to import private keys - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://en.zaoniao.it/index.php?action=history&amp;feed=atom&amp;title=How_to_import_private_keys"/>
	<link rel="alternate" type="text/html" href="http://en.zaoniao.it/index.php?title=How_to_import_private_keys&amp;action=history"/>
	<updated>2026-05-15T06:32:24Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.32.0</generator>
	<entry>
		<id>http://en.zaoniao.it/index.php?title=How_to_import_private_keys&amp;diff=5371&amp;oldid=prev</id>
		<title>Admin: Created page with &quot;{{#seo: |title=How to import private keys - zaoniaoWiki |keywords=blockchain projects, how to import private keys, import of keys, import, key, private, how, bips, blockchain....&quot;</title>
		<link rel="alternate" type="text/html" href="http://en.zaoniao.it/index.php?title=How_to_import_private_keys&amp;diff=5371&amp;oldid=prev"/>
		<updated>2019-06-01T05:30:26Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{#seo: |title=How to import private keys - zaoniaoWiki |keywords=blockchain projects, how to import private keys, import of keys, import, key, private, how, bips, blockchain....&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{#seo:&lt;br /&gt;
|title=How to import private keys - zaoniaoWiki&lt;br /&gt;
|keywords=blockchain projects, how to import private keys, import of keys, import, key, private, how, bips, blockchain.info, mycelium&lt;br /&gt;
|description=Import of private key can result in losing your cryptocurrency, even long after the import. Before getting started with importing your wallet’s private keys, clarify three important definitions.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
[[File:Bitcoinlitecoin_high_quality_stainless_steel_crypto.jpg|400px|right|Import of private keys]]&lt;br /&gt;
Note that messing with ECDSA private keys is very dangerous and can result in losing bitcoins, even long after the import.&lt;br /&gt;
It is recommended that outside of self-generated vanity addresses, users should ''never'' import (or export) private keys.&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;&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
Before getting started with importing your wallet’s private keys, let’s clarify three important definitions.&lt;br /&gt;
* '''Backup''': A file containing a wallet’s private key information. Backups can be exported from a wallet or imported to a wallet.&lt;br /&gt;
* '''Export''': The process of creating a file containing a wallet’s private key data. Exported keys can be imported to a new/different wallet to give access to the Bitcoins (Bitcoin Core, BTC) associated with the exported private key(s).&lt;br /&gt;
* '''Import''': The process of gaining control of BTCs via an exported backup. Wallets can import private keys via text files or QR code scanning.&lt;br /&gt;
&lt;br /&gt;
== Start Bitcoin client ==&lt;br /&gt;
{{#ev:youtube|03RbWB4ONFY|500|right|How to import Private Key (Bitcoin Address) into Blockchain Wallet?}}&lt;br /&gt;
'''Note that importing a key to bitcoind and/or Bitcoin-Qt may be dangerous and is not recommended unless you understand the full details of how it works'''&lt;br /&gt;
&lt;br /&gt;
Unlike third-party wallet.dat manipulation tools such as [[Pywallet]], you do not have to close the Bitcoin client before proceeding. Instead, you need to start the bitcoind server.&lt;br /&gt;
* Close bitcoin-qt and start ''bitcoind -damon'' in Terminal Emulator. The version of bitcoind MUST be the same as bitcoin-qt!&lt;br /&gt;
&lt;br /&gt;
Bitcoin-QT does not enable its RPC interface by default. To enable it:&lt;br /&gt;
* Close Bitcoin-QT and restart it with ''bitcoin-qt -server''.&lt;br /&gt;
&lt;br /&gt;
== Unlock your wallet ==&lt;br /&gt;
If you have an encrypted wallet (recommended), you need to unlock it temporarily before importing private keys. The RPC command for unlocking an encrypted wallet is ''walletpassphrase &amp;lt;passphrase&amp;gt; &amp;lt;timeout&amp;gt;''. Typing this directly in a bash terminal will leave your wallet passphrase directly in the bash history but there are a couple of techniques you can use to avoid this. Simply add a space before the command:&lt;br /&gt;
&lt;br /&gt;
 (space)bitcoind walletpassphrase yourpassphrase 120&lt;br /&gt;
&lt;br /&gt;
Another alternative is to use a bash variable:&lt;br /&gt;
&lt;br /&gt;
 read x&lt;br /&gt;
 (input your passphrase)&lt;br /&gt;
 bitcoind walletpassphrase &amp;quot;$x&amp;quot; 120 # Do not set the timeout too long or too short.&lt;br /&gt;
&lt;br /&gt;
== Import Private key(s) ==&lt;br /&gt;
The last command unlocked your wallet temporarily for 120 seconds, during which time you must import your private keys. Since private keys can be as important as your passphrase, you may want to use the same techniques as above to prevent their being recorded in bash history (bash variable or space before the command):&lt;br /&gt;
&lt;br /&gt;
 (space)bitcoind importprivkey &amp;quot;5yourveryveryveryverylongprivatekeystring&amp;quot; &amp;quot;my-new-key&amp;quot; # &amp;quot;my-new-key&amp;quot; is a label for the key/address pair and is optional&lt;br /&gt;
&lt;br /&gt;
The importing process is now started. Bitcoind will rescan the entire block data to ensure this key has not been used before. This process will take from one to two minutes, depending on your CPU performance. DO NOT abort it before finishing!&lt;br /&gt;
&lt;br /&gt;
To avoid rescanning run the following.&lt;br /&gt;
&lt;br /&gt;
 (space)bitcoind importprivkey 5yourveryveryveryverylongprivatekeystring&amp;quot; &amp;quot;label-here&amp;quot; rescan=false&lt;br /&gt;
&lt;br /&gt;
If no errors occurs, the import is a success and Bitcoin-QT users will be able to see the new address in the GUI immediately. If you need to import more keys, just repeat the instructions above. There is currently no command to import a batch of private keys so you will need to wait a minute or two for each key to be imported.&lt;br /&gt;
&lt;br /&gt;
== Cleaning up ==&lt;br /&gt;
 bitcoind walletlock&lt;br /&gt;
&lt;br /&gt;
This will lock your wallet again (so you don't have to wait for timeout)&lt;br /&gt;
&lt;br /&gt;
 unset x&lt;br /&gt;
 unset y&lt;br /&gt;
&lt;br /&gt;
These commands will clear the passphrase and private key from memory if you used the ''read'' technique. If you started bitcoind, you will need to stop it before Bitcoin-QT will start again:&lt;br /&gt;
&lt;br /&gt;
 bitcoind stop&lt;br /&gt;
&lt;br /&gt;
===Deleting Keys===&lt;br /&gt;
At some point, you may wish to delete private keys from a wallet.dat file but as of version v0.6.0 of Bitcoin-QT/bitcoind, there is no RPC method available for this purpose&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;
==Another ways==&lt;br /&gt;
=== Using Blockchain.info ===&lt;br /&gt;
As of August 2012, possibly the easiest way to import a private key is using [[Blockchain.info]]'s My Wallet service. When successully imported through the &amp;quot;Import/Export&amp;quot; screen, the bitcoins assigned to a private key can be immediately sent to any Bitcoin address.&lt;br /&gt;
&lt;br /&gt;
=== Using BIPS ===&lt;br /&gt;
As of August 2013, [[BIPS]] allows for easy import of private key using Paper Wallet - Import. User can choose to type in the private key manually or scan a QR code containing the private key using the camera. The user must wait 6 confirmations for access to the funds, and system is based on batch importation.&lt;br /&gt;
&lt;br /&gt;
=== Using Mycelium ===&lt;br /&gt;
Steps described are with the following settings:&lt;br /&gt;
* Export mode enabled&lt;br /&gt;
* Aggregated view disabled&lt;br /&gt;
&lt;br /&gt;
=== Partial spend from cold storage ===&lt;br /&gt;
Use this function if you would like to keep some funds on the paper wallet.&lt;br /&gt;
# Download [https://play.google.com/store/apps/details?id=com.mycelium.wallet&amp;amp;hl=en Mycelium] from the Android Play Store or through iTunes.&lt;br /&gt;
# Press the menu button and select &amp;quot;Cold Storage&amp;quot;&lt;br /&gt;
# Scan in private key&lt;br /&gt;
# Select your destination address&lt;br /&gt;
# Select the amount &lt;br /&gt;
## Press the blue currency tag at the top to toggle currency.&lt;br /&gt;
# Send!&lt;br /&gt;
&lt;br /&gt;
After spending, the private key in memory is destroyed so the paper private key remains somewhat secure. Despite this, best practice is to immediately send the remaining balance to a paper wallet that was generated offline.&lt;br /&gt;
&lt;br /&gt;
=== Import key from a paper wallet ===&lt;br /&gt;
Use this function if you would like to import a private key so all funds are immediately available for spending.&lt;br /&gt;
# Download [[MyCelium]] from the Android Play Store or through iTunes.&lt;br /&gt;
# Key Management&lt;br /&gt;
# Press the blue '+' symbol&lt;br /&gt;
# Scan in private key&lt;br /&gt;
&lt;br /&gt;
After importing this paper private key, you might consider destroying the original so it cannot be found and your funds stolen. Alternatively, you can keep it safe to be used as an offline backup.&lt;br /&gt;
&lt;br /&gt;
=== Using bitcoind ===&lt;br /&gt;
'''If you have Version 7 or later it is now trival.''' See: [[How to import private keys v7+]]&lt;br /&gt;
&lt;br /&gt;
If you are using [[Cold storage]], a [[Paper wallet]] or generating [https://bitcointalk.org/index.php?topic=25804.0 vanity addresses] you may have a need to import a [[Private key]]. Since Bitcoin-QT/bitcoind v0.6.0, you can import private keys using built-in RPC command [[importprivkey]]. Before v0.6.0, you needed to rely on third-party wallet.dat manipulation tool such as [[Pywallet]]. &lt;br /&gt;
&lt;br /&gt;
==External links==&lt;br /&gt;
* [https://www.bitcoin.com/guides/how-to-import-and-export-bitcoin-private-keys Bitcoin.com - How to Import and Export Bitcoin Private Keys]&lt;br /&gt;
* [https://en.bitcoin.it/wiki/How_to_import_private_keys https://en.bitcoin.it/wiki/How_to_import_private_keys]&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[How bitcoin works]]&lt;br /&gt;
* [[FAQ]]&lt;br /&gt;
* [[Introduction]]&lt;br /&gt;
* [[Getting started]]&lt;br /&gt;
* [[Using Bitcoin]]&lt;br /&gt;
* [[Double-spending]]&lt;br /&gt;
* [[Prohibited changes]]&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;br /&gt;
[[Category:Manuals]]&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
</feed>