Пример #1
0
 public static IEnumerable <HdAddress> GetAccountAddressesWithBalance(this IWalletManager walletManager, string walletName)
 {
     return(walletManager
            .GetSpendableTransactionsInWallet(walletName)
            .GroupBy(x => x.Address)
            .Where(grouping => grouping.Sum(x => x.Transaction.GetUnspentAmount(true)) > 0)
            .Select(grouping => grouping.Key));
 }
Пример #2
0
 public static List <OutPoint> GetSpendableInputsForAddress(this IWalletManager walletManager, string walletName, string address)
 {
     return(walletManager.GetSpendableTransactionsInWallet(walletName, MinConfirmationsAllChecks).Where(x => x.Address.Address == address).Select(x => x.ToOutPoint()).ToList());
 }