Bitcoin Forum
November 16, 2024, 02:05:37 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How do I sweep in multiple private keys automatically?  (Read 523 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: 3682
Merit: 1580



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!