Hundreds of Electrum wallets, how to automate in Tails?

Hello

I have a shit ton of Electrum wallets stored on my persistence - lots of which have been rode (very) hard - some neverused. Some have change in them, some not.

Instead of opening each one (I am using Tails 3.0) does anyone know of a way to tell which are empty, or which ones have what in them - most importantly: if there is anything out there that would (long shot!) be able to combine all of the wallets like when you're going to CoinStar and digging in the sofa cushion?

Spanks


Comments


[6 Points] nomorebullshittt:

I want to see answers.


[1 Points] trasnor:

https://github.com/ramuta/electrum-script-tutorial/blob/master/README.md

Write a script that opens each wallet, checks balance, if greater than 0 then send to a predefined address


[1 Points] Sourcery_Market:

Are you comfortable on the command line? If so write a shell script and use the electrum command line to process each wallet.

the electrum command you will want:

electrum -w [PATH_TO_WALLET] getbalance

You can use something like jq to parse the response and get the balanced. Off the top of my head:

electrum -w [WALLET-PATH] getbalance | jq -r '.confirmed'

Will return the number only, not the full JSON.

So just write a script that looks at the directory with your wallets, iterates, and calls that command line. Do a check and if balance > 0 then move coins somwehere, echo it or copy it somewhere to be processed later.