Author

Topic: What is the best way to unlock coind? (Read 98 times)

newbie
Activity: 1
Merit: 0
June 11, 2018, 05:44:10 AM
#1
Hello,

I would like to unlock my wallet from CLI without exposing my password to the bash history or any kind of process tools.

A convenient way for bitcoin is to unlock bitcoind with the -stdin param.
Code:
(pass bitcoin; echo 3600) | ./bitcoin-cli -stdin walletpassphrase

So, I would be quite satisfied with this solution, but many altcoin daemons don't support -stdin. What is the best workaround to unlock the wallet without exposing my password?

Unfortunately I can't use the bitcoin-cli for this, because I have a stakingwallet and need to set 'forstakingonly' to true.
Jump to: