Hi everyone,
I am trying to connect dashd but it gives an error.
When I looked ~/.dash/dash.conf everything is ok.
I am running dashd with this command.
I am tried with php
jsonRPCClient it gives HTTP request failed! 401 Unauthorized
shell_exec gives no output
Do you have any idea ? It caused headache.
I am trying to connect dashd but it gives an error.
Message: fopen(http ://[email protected]:9998/): failed to open stream: HTTP request failed! HTTP/1.0 401 Unauthorized
When I looked ~/.dash/dash.conf everything is ok.
rpcuser=dashUser
rpcpassword=dashPass
server=1
daemon=1
rpcallowip=127.0.0.1
rpcport=9998
#paytxfee=0.0003
I am running dashd with this command.
Error: Cannot obtain a lock on data directory /root/.dashcore. Dash Core is probably already running./usr/bin/dashd -deamon
I am tried with php
jsonRPCClient it gives HTTP request failed! 401 Unauthorized
shell_exec gives no output
Do you have any idea ? It caused headache.
PHP:
$output = shell_exec('curl --user dashUser:dashPass --data-binary \'{"jsonrpc": "1.0", "id":"curltest", "method": "getinfo", "params": [] }\' -H \'content-type: text/plain;\' http ://127.0.0.1:9998/');
$res = json_decode($output);
print_r($res);
$Dash = new jsonRPCClient("http ://user:[email protected]:9998/");
$num = $Dash->getblockcount();
print_r($num);