Hello everyone.
i have bitcoind installed on VPS debian server.
My site communicate with bitcoind via PHP RPC-JSON, it works great, i can check getinfo(), receving amount etc.
I would like to send coins to my blockchain wallet, but when i tried to call $bitcoind->sendtoaddress(amount,address,comment1,commen2), i got an 500 internal error.
Warning: fopen(http://...@127.0.0.1:8332/): failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error in D:\xampp\htdocs\bitcoind2\JsonRPCClient.php on line 141
Fatal error: Uncaught exception 'Exception' with message 'Unable to connect to http://myuser:mypwd@127.0.0.1:8332/' in D:\xampp\htdocs\bitcoind2\JsonRPCClient.php:149 Stack trace: #0 D:\xampp\htdocs\bitcoind2\Bitcoin.php(719): JsonRPCClient->__call('sendtoaddress', Array) #1 D:\xampp\htdocs\bitcoind2\Bitcoin.php(719): JsonRPCClient->sendtoaddress('0.0005', '14mARZ8YQpHdKXB...', 'aaaa', 'bbbb') #2 D:\xampp\htdocs\bitcoind2\BitcoinTest.php(279): Bitcoin->sendtoaddress('0.0005', '14mARZ8YQpHdKXB...', 'aaaa', 'bbbb') #3 D:\xampp\htdocs\bitcoind2\test.php(7): BitcoinTest->testSendtoaddress('0.0005', '14mARZ8YQpHdKXB...', 'aaaa', 'bbbb') #4 {main} thrown in D:\xampp\htdocs\bitcoind2\JsonRPCClient.php on line 149
I read some article over internet, maybe i have to unlock my bitcoind wallet before i would like to use sendtoaddress()