json rpc – Issues connecting LTC, and BTC but no other coins… PHP based RPC

0
36


im trying to connect my website to my wallet via php based rpc commands.
Any altcoin i connect to works just fine, using a file setting the rpc variables…

$rpc_host="127.0.0.1";
$rpc_user="myuser";
$rpc_pass="mypass";
$rpc_port="myport";

im using just a basic jsonRPCClient

 $uri = "http://" . $username . ":" . $password . "@" . $address . ":" . $port . "/";

and my config file (e.g., litecoin.conf) contains the following

server=1
daemon=1
rpcbind=127.0.0.1:9332
rpcuser=user
rpcpassword=pass
rpcport=9332
rpcallowip=127.0.0.1
listen=1
rpctimeout=20

running a simple getbalance command

if ($row['name'] == 'LTC') {
                             $litecoind = new LitecoinClient($rpc_user, $rpc_pass, $rpc_host, $rpc_port);
                             $lbalance = $litecoind->getbalance($user_session);
                         }

returns:

Warning: fopen(http://[email protected]:9332/): failed to open stream: HTTP request failed! HTTP/1.0 500 Internal Server Error in C:xampphtdocsbeehivejsonRPCClient.php on line 133

Not really sure whats going on here?… works for all other coins. (doge, ravencoin, etc…)

Thanks in advance!!!



Source link

Leave a reply