Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String user = "RPC_USER_NAME";
- String password = "RPC_PASSWORD";
- String host = "127.0.0.1";
- String port = "PORT";
- try {
- URL url = new URL("http://" + user + ':' + password + "@" + host + ":" + port + "/");
- BitcoinJSONRPCClient bitcoinClient = new BitcoinJSONRPCClient(url);
- System.out.println(bitcoinClient.getInfo());
- } catch (MalformedURLException e) {
- e.printStackTrace();
- }
Add Comment
Please, Sign In to add comment