Skip to content

Instantly share code, notes, and snippets.

@sheharyarn

sheharyarn/bitcoin.conf

Last active Mar 2, 2018
Embed
What would you like to do?
Quickly work with BTC Testnet
testnet=1
server=1
# enable SSL for RPC server
#rpcssl=1
rpcallowip=0.0.0.0/0
rpcuser=admin
rpcpassword=123
function btc {
local server="bitcoind -testnet"
local client="bitcoin-cli -testnet"
local dir="$HOME/.bitcoin/testnet3"
if [ $# -eq 0 ] ; then
$client --help
else
case $1 in
start) $server -server -daemon ;;
stop) $client stop ;;
tail) tail -f $dir/debug.log ;;
info) $client getinfo ;;
blockchain) $client getblockchaininfo ;;
network) $client getnetworkinfo ;;
*) $client $@ ;;
esac
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment