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

Bitcoin Mining Could Be Strengthening The Ruble, Russian Central Bank Says

Crypto Exec Warns Tokenization Is Moving Faster Than Expected

Bitwise Clients Pour $69M Into Solana as Bulls Fight to Reclaim $200 Resistance Zone