Silk Road forums
Support => Technical support => Topic started by: badboy97 on March 14, 2012, 02:00 am
-
I am trying to implement a payment processor for my tor website using JSON-rpc.
I am using this code.
<?php
require_once 'jsonRPCClient.php';
// Replace with the username and password you set in bitcoin.conf earlier
$bitcoin = new jsonRPCClient('http://username:password@127.0.0.1:8332/');
print_r($bitcoin->getinfo());
?>
I have the jsonRPCClient.php in my public_html directory, but I cannot seem to echo out my wallet's info. Always comes up blank.
Would I need to direct to somewhere other than localhost because I am running tor? I really can't imagine that would make any difference.
I have my bitcoin.conf file setup properly I think....
Any insight would be extremely helpful.
BB