I would like to store my Bitcoin RPC passwords and usernames in environment variables, like:
Is this supported in bitcoin core? Can environmental variables be parsed from my bitcoin.conf file?
Bitcoin Stack Exchange is a question and answer site for Bitcoin crypto-currency enthusiasts. It only takes a minute to sign up.Sign up to join this community
No, bitcoin core does not expand environment variables in
See here to see how options are parsed.
You can expand environment variables as arguments for
$ bitcoind -rpcuser="$RPC_USERNAME" -rpcpassword="$RPC_PASSWORD"