func ConnectToBitcoinClient(host string, port int, rpcUser string, rpcPassword string) (*bitcoindwrapper.Bitcoind, error) {

	// Connect to local bitcoin core RPC server using HTTP POST mode.
	// Bitcoin core does not provide TLS by default
	// This won't hang if a bigcoin core client is not present in the machine since it just creates the rpc client
	bitcoind, err := bitcoindwrapper.New(host, port, rpcUser, rpcPassword, false)
	if err != nil {
		log.Fatalln(err)
	}

	return bitcoind, nil
}
//ConnectToBitcoinClient connects to the local instance of the bitcoin-core client
ConnectToBitcoinClient connects to the local instance of the bitcoin-core client
// ConnectToBitcoinClient connects to the local instance of the bitcoin - core client
func ConnectToBitcoinClient(host string, port int, rpcUser string, rpcPassword string) (*bitcoindwrapper.Bitcoind, error) {
	bitcoind, err := bitcoindwrapper.New(host, port, rpcUser, rpcPassword, false)
	if err != nil {
		log.Fatalln(err)
	}
	return bitcoind, nil
}
func ConnectToBitcoinClient ( host string , port int , rpcUser string , rpcPassword string ) ( * bitcoindwrapper . Bitcoind , error ) { bitcoind , err := bitcoindwrapper . New ( host , port , rpcUser , rpcPassword , false ) if err != nil { log . Fatalln ( err ) } return bitcoind , nil }
ConnectToBitcoinClient connects to the local instance of the bitcoin-core client
ConnectToBitcoinClient connects to the local instance of the bitcoin - core client
// Connect to local bitcoin core RPC server using HTTP POST mode. // Bitcoin core does not provide TLS by default // This won't hang if a bigcoin core client is not present in the machine since it just creates the rpc client