Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server=1
- daemon=1
- rpcuser=my_username
- rpcpassword=mypassword
- rpcport=9332
- <?php
- include_once('jsonRPCClient.php');
- $variable = $_GET['variable'];
- $litecoin = new jsonRPCClient('http://my_user:my_password@127.0.0.1:9332/');
- if($variable=='getnewaddress')
- {
- echo $litecoin->getnewaddress();
- }
- else if($variable=='getinfo')
- {
- print_r($litecoin->getinfo());
- }
- else
- {
- echo "hello";
- }
- ?>
- rpcallowip=127.0.0.1
- sudo cp litecoind /usr/bin/litecoind
- litecoind -daemon
- litecoind getinfo
Add Comment
Please, Sign In to add comment