Bitcoin Forum
July 19, 2024, 11:39:39 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Import multiple privkeys in CLI as a GUI  (Read 115 times)
balmha (OP)
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
October 27, 2020, 10: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)
BitMaxz
Legendary
*
Offline Offline

Activity: 3318
Merit: 3057


BTC price road to $80k


View Profile WWW
October 27, 2020, 10: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"

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
nc50lc
Legendary
*
Offline Offline

Activity: 2478
Merit: 5817


Self-proclaimed Genius


View Profile
October 28, 2020, 04:15:18 AM
 #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.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!