Cannot import private keys
See original GitHub issueI am trying to import some private keys into the wallet, but it seems that electrum doesn’t support it. Here is what it tried:
[root@v48807 .bitcoin]# electrum version
3.3.4
[root@v48807 .bitcoin]# electrum importprivkey --help
usage: electrum importprivkey [-h] [-v [VERBOSITY]] [-D ELECTRUM_PATH] [-P]
[-w WALLET_PATH] [--testnet] [--regtest]
[--simnet] [-W PASSWORD]
privkey
Import a private key.
positional arguments:
privkey Private key. Type '?' to get a prompt.
optional arguments:
-h, --help show this help message and exit
-W PASSWORD, --password PASSWORD
Password
global options:
-v [VERBOSITY] Set verbosity filter
-D ELECTRUM_PATH, --dir ELECTRUM_PATH
electrum directory
-P, --portable Use local 'electrum_data' directory
-w WALLET_PATH, --wallet WALLET_PATH
wallet path
--testnet Use Testnet
--regtest Use Regtest
--simnet Use Simnet
[root@v48807 .bitcoin]# electrum create --help
usage: electrum create [-h] [-v [VERBOSITY]] [-D ELECTRUM_PATH] [-P]
[-w WALLET_PATH] [--testnet] [--regtest] [--simnet]
[--passphrase PASSPHRASE] [-W PASSWORD]
[--encrypt_file ENCRYPT_FILE] [--segwit]
Create a new wallet
optional arguments:
-h, --help show this help message and exit
--passphrase PASSPHRASE
Seed extension
-W PASSWORD, --password PASSWORD
Password
--encrypt_file ENCRYPT_FILE
Whether the file on disk should be encrypted with the
provided password
--segwit Create segwit seed
global options:
-v [VERBOSITY] Set verbosity filter
-D ELECTRUM_PATH, --dir ELECTRUM_PATH
electrum directory
-P, --portable Use local 'electrum_data' directory
-w WALLET_PATH, --wallet WALLET_PATH
wallet path
--testnet Use Testnet
--regtest Use Regtest
--simnet Use Simnet
[root@v48807 .bitcoin]# electrum create -w w/huge1
{
"msg": "Please keep your seed in a safe place; if you lose it, you will not be able to restore your wallet.",
"path": "/var/cryptobox/.bitcoin/w/huge1",
"seed": "ice injury bubble leisure tumble harbor record measure fitness hire occur radio"
}
[root@v48807 .bitcoin]# electrum importprivkey -w w/huge1 ?
Error: This type of wallet cannot import private keys. Try to create a new wallet with that key.
[root@v48807 .bitcoin]#
How I can create a wallet which is able to import the keys?
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Can't import SSL private key certificate - Internet Information ...
This article helps you resolve an error that occurs when you try to import a Secure Sockets Layer (SSL) private key certificate (.pfx)...
Read more >How do I fix "We couldn't import that private key" : r/Metamask
The 'Sync with extension' feature is temporarily disabled. If you want to use your extension wallet on MetaMask mobile, then on your mobile...
Read more >How do I import a private key? - Exodus Support
1: First, navigate to the Bitcoin (BTC) wallet, and tap on the gear icon. ; 2: Then, tap Add Bitcoin from Private Keys...
Read more >Importing your private keys into Electrum
You cannot import private keys into an existing HD wallet. Importing private keys requires you to create a new wallet file that will...
Read more >Can't import any ssh private keys? - Manjaro Linux Forum
... I can't for the life of me figure out how to import/manage/use my remote server ssh keys. On windows I would convert...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
sorry use restore:
electrum -w wallet-file restore <privkey>
Not anymore. Also if you don’t like electrum you shouldn’t use it.