/** * @param string $host * @param int $port * @param string $user * @param string $password * @param int $timeout * @param array $headers * @return Bitcoind */ public static function bitcoind($host, $port, $user, $password, $timeout = 5, array $headers = array()) { $jsonRPCclient = new JsonRpcClient($host, $port, $timeout, $headers); $jsonRPCclient->authentication($user, $password); return new Bitcoind($jsonRPCclient); }