private static void generic(AccountService accountService) throws IOException { AccountInfo accountInfo = accountService.getAccountInfo(); System.out.println("Wallet: " + accountInfo); System.out.println( "ETH balance: " + accountInfo.getWallet().getBalance(Currency.ETH).getAvailable()); }
private static void generic(AccountService accountService) throws IOException { AccountInfo accountInfo = accountService.getAccountInfo(); System.out.println("Wallet: " + accountInfo); System.out.println( "ETH balance: " + accountInfo.getWallet().getBalance(Currency.ETH).getAvailable()); }
private static void generic(AccountService accountService) throws IOException { // Get the account information AccountInfo accountInfo = accountService.getAccountInfo(); System.out.println("Wallet: " + accountInfo); System.out.println( "BTC balance: " + accountInfo.getWallet().getBalance(Currency.BTC).getAvailable()); }