/// <inheritdoc /> public IEnumerable <HdAccount> GetAccounts(string walletName) { Guard.NotEmpty(walletName, nameof(walletName)); Wallet wallet = this.GetWalletByName(walletName); return(wallet.GetAccountsByCoinType(this.coinType)); }
/// <inheritdoc /> public IEnumerable <HdAddress> GetHistory(Wallet wallet) { var accounts = wallet.GetAccountsByCoinType(this.coinType).ToList(); foreach (var address in accounts.SelectMany(a => a.ExternalAddresses).Concat(accounts.SelectMany(a => a.InternalAddresses))) { if (address.Transactions.Any()) { yield return(address); } } }
/// <inheritdoc /> public IEnumerable <HdAccount> GetAccounts(string walletName) { Wallet wallet = this.GetWalletByName(walletName); return(wallet.GetAccountsByCoinType(this.coinType)); }