Give Electrum CLI password

I have the below script for getting all private keys from Electrum wallets from current folder, the password should be the same for all of them:

#!/usr/bin/env bash

for file in *;
do
    electrum -w "./$file" listaddresses --offline | electrum getprivatekeys - --password one_password_for_all_wallets -w "./$file" --offline 2> /dev/null | jq -r ".[]"
done

How to provide Electrum CLI the password, because he asks for it for each wallet?

I tried things like Electrum options (-o, -P, --password) or yes password | before the commands but they do not work.



from Recent Questions - Bitcoin Stack Exchange https://ift.tt/3v1klcN
via IFTTT

Popular posts from this blog

How to compute MAST commit bytes in bitcoin payment?

Isit possible to swap my MBTC into BTC

Anyone help with some tbtc?