Answer the question
In order to leave comments, you need to log in
Connecting to Bitcoin RPC?
I have Bitcoin Core installed on Windows 10 and set the following parameters in config.
server=1
rpcuser=rpcuser
rpcpassword=rpcpassword
rpcallowip= ** IP сервера с которого будет установлена соединение
rpcport=8332
rpcconnect= ** IP адрес сервера Windows 10 ** 192.168.****
$bitcoind = new Client([
'scheme' => 'http',
'host' => ' ** IP адрес сервера Windows 10 ** 192.168.****', // optional, default localhost
'port' => 8332,
'user' => 'rpcuser',
'pass' => 'rpcpass'
]);
$result = $bitcoind->getnewaddress();
echo '<pre>';
print_r($result);
echo '</pre>';
cURL error 7: Failed to connect to 192.168.**** port 8332: Connection refused (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question