Guest User

Untitled

a guest
Dec 12th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. String user = "RPC_USER_NAME";
  2. String password = "RPC_PASSWORD";
  3. String host = "127.0.0.1";
  4. String port = "PORT";
  5.  
  6. try {
  7. URL url = new URL("http://" + user + ':' + password + "@" + host + ":" + port + "/");
  8.  
  9. BitcoinJSONRPCClient bitcoinClient = new BitcoinJSONRPCClient(url);
  10. System.out.println(bitcoinClient.getInfo());
  11. } catch (MalformedURLException e) {
  12. e.printStackTrace();
  13. }
Add Comment
Please, Sign In to add comment