Author

Topic: Import multiple privkeys in CLI as a GUI (Read 129 times)

legendary
Activity: 2534
Merit: 6080
Self-proclaimed Genius
October 27, 2020, 11:15:18 PM
#3
electrum restore privkey1,privkey2,privkey3 (this isnt work)
Restore will create a new wallet instead of importing to an existing wallet.
I tried it and successfully used "restore" by using spaces instead of comma,
plus you need to specify the path or name (will be created in the same dir of electrum) of the to-be-created wallet file:

Examples:
Code:
restore "KziuQS1uPq2i4XRg7gxGacWoTBMgTUVrU2Bm2c1e17GdMTAWMguq Kzs8YzmX2HXzKE8dxpm1y6vyb3g5abTio1f7SroKNoecZg1cHL3a" -w "C:\****\****\delete_later-nc50lc1"
Code:
restore "KziuQS1uPq2i4XRg7gxGacWoTBMgTUVrU2Bm2c1e17GdMTAWMguq Kzs8YzmX2HXzKE8dxpm1y6vyb3g5abTio1f7SroKNoecZg1cHL3a" -w "delete_later-nc50lc2"

If you want to change the address type, add the address type before the private keys just like in the GUI:
Example:
Code:
restore "p2wpkh:KziuQS1uPq2i4XRg7gxGacWoTBMgTUVrU2Bm2c1e17GdMTAWMguq p2wpkh-p2sh:Kzs8YzmX2HXzKE8dxpm1y6vyb3g5abTio1f7SroKNoecZg1cHL3a" -w "delete_later-nc50lc3"

Make sure that the daemon is running.
legendary
Activity: 3374
Merit: 3095
Playbet.io - Crypto Casino and Sportsbook
October 27, 2020, 05:46:26 PM
#2
Can you try to use this command below.

Code:
electrum importprivkey :

If it doesn't work use the help command instead to find the right command.

Code:
electrum help importprivkey

Adding this I just found this from old post and it might be work on CLI.

Code:
importprivkey("pasteyourprivkeyhere")


If any the command above doesn't work try not to include the "electrum" or try this commands.

Code:
electrum restore -w walletname "yourprivatekey"

with password.
Code:
electrum importprivkey -w walletname -W yourpass "yourprivatekey"
newbie
Activity: 1
Merit: 0
October 27, 2020, 05:12:41 PM
#1
Hi, how are you?.

I need to know any way to restore multiple private keys trhough Linux Electrum CLI like Windows Electrum GUI.

In Windows you can import multiple privkeys here:

https://ibb.co/1K7JCXc


But how with Electrum CLI for Linux?:

electrum restore privkey1,privkey2,privkey3 (this isnt work)
Jump to: