Bitcoin Forum
June 25, 2024, 12:00:48 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How do I sweep in multiple private keys automatically?  (Read 501 times)
bitanalysis (OP)
Newbie
*
Offline Offline

Activity: 12
Merit: 0


View Profile
April 25, 2016, 10:18:58 PM
 #1

I have a list of private keys I want to sweep into a single wallet using electrum. I know I sweep from the UI with a list but how do I do the same thing from command line?
Abdussamad
Legendary
*
Offline Offline

Activity: 3640
Merit: 1571



View Profile
April 28, 2016, 01:56:15 PM
 #2

Perhaps run a for loop? In bash on linux:

Code:
dest_addr="1somethingsom" #destination address from your wallet

for privkey in `cat my_list_of_keys_one_per_line`
do
electrum sweep $privkey $dest_addr
done
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!