/** * Get accounts for a specific coin type. Returns empty list if no account exists */ public List<WalletAccount> getAccounts(CoinType coinType) { return getAccounts(Lists.newArrayList(coinType)); }
public List<WalletAccount> getAccounts(CoinType type) { if (wallet != null) { return wallet.getAccounts(type); } else { return ImmutableList.of(); } }
public List<WalletAccount> getAccounts(AbstractAddress address) { if (wallet != null) { return wallet.getAccounts(address); } else { return ImmutableList.of(); } }
public List<WalletAccount> getAccounts(List<CoinType> types) { if (wallet != null) { return wallet.getAccounts(types); } else { return ImmutableList.of(); } }
List<WalletAccount> currentAccount = getAccounts(coinType); if (currentAccount.size() > 0) { return currentAccount.get(0);
wallet.getAccounts(request.tx.getSentTo().get(0).getAddress()).get(0); if (!account.broadcastTxSync(request.tx)) { throw new Exception("Error broadcasting transaction: " + request.tx.getHashAsString());