From 3c15a7d8698fb082969cd18c303689eee530fcd9 Mon Sep 17 00:00:00 2001 From: Shannon Appelcline Date: Wed, 2 Sep 2020 12:04:58 -1000 Subject: [PATCH] Update 17_2_App-getinfo.java --- src/17_2_App-getinfo.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/17_2_App-getinfo.java b/src/17_2_App-getinfo.java index 1ee51a0..21f4c86 100644 --- a/src/17_2_App-getinfo.java +++ b/src/17_2_App-getinfo.java @@ -11,8 +11,7 @@ public class App public static void main( String[] args ) throws Exception { - BitcoindRpcClient rpcClient = new BitcoinJSONRPCClient("http://StandUp:6 -305f1b2dbb3bc5a16cd0f4aac7e1eba@localhost:18332"); + BitcoindRpcClient rpcClient = new BitcoinJSONRPCClient("http://StandUp:6305f1b2dbb3bc5a16cd0f4aac7e1eba@localhost:18332"); MiningInfo info = rpcClient.getMiningInfo(); System.out.println("Mining Information"); @@ -27,10 +26,11 @@ public class App AddressInfo addr1Info = rpcClient.getAddressInfo(addr1); System.out.println("Address: " + addr1Info.address()); - System.out.println("MasterFingerPrint: " + addr1Info.hdMasterFingerprint -()); + System.out.println("MasterFingerPrint: " + addr1Info.hdMasterFingerprint()); System.out.println("HdKeyPath: " + addr1Info.hdKeyPath()); System.out.println("PubKey: " + addr1Info.pubKey()); + System.out.println("Balance: " + rpcClient.getBalance()); + } }