Guest User

Untitled

a guest
Dec 22nd, 2017
372
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. server=1
  2. daemon=1
  3. rpcuser=my_username
  4. rpcpassword=mypassword
  5. rpcport=9332
  6.  
  7. <?php
  8. include_once('jsonRPCClient.php');
  9. $variable = $_GET['variable'];
  10. $litecoin = new jsonRPCClient('http://my_user:my_password@127.0.0.1:9332/');
  11. if($variable=='getnewaddress')
  12. {
  13. echo $litecoin->getnewaddress();
  14. }
  15. else if($variable=='getinfo')
  16. {
  17. print_r($litecoin->getinfo());
  18. }
  19. else
  20. {
  21. echo "hello";
  22. }
  23. ?>
  24.  
  25. rpcallowip=127.0.0.1
  26.  
  27. sudo cp litecoind /usr/bin/litecoind
  28.  
  29. litecoind -daemon
  30.  
  31. litecoind getinfo
Add Comment
Please, Sign In to add comment