Example #1
0
 static void PrintWallet(IFiatWallet wallet)
 {
     foreach (var tag in wallet.GetTags())
     {
         Console.WriteLine($"{tag.Tag}:");
         Console.WriteLine("  txs:");
         foreach (var tx in tag.Txs)
         {
             Console.WriteLine($"    {tx}");
         }
     }
 }
Example #2
0
        static FiatWalletTag EnsureTagExists(IFiatWallet wallet, string tag)
        {
            var tags = wallet.GetTags();

            foreach (var tag_ in tags)
            {
                if (tag_.Tag == tag)
                {
                    return(tag_);
                }
            }
            var tag__ = wallet.NewTag(tag);

            wallet.Save();
            return(tag__);
        }