Bitcoin Forum
May 14, 2024, 02:42:57 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: What is the best way to unlock coind?  (Read 79 times)
BlockEncryptor (OP)
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
June 11, 2018, 10: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.
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!