private void CheckTransactionStatus(object sender, EventArgs e) { var uncompletedTxs = TransactionList.Where(q => q.IsConfirmed == false).ToList(); foreach (var tx in uncompletedTxs) { DispatcherHelper.Invoke(async() => { try { var raw = await TransactionManager.CheckAndRecordTransactionStatus(tx.TransactionId); if (null != raw) { tx.BlockHash = raw.BlockHash.ToString(); tx.Confirmations = raw.Confirmations; tx.IsConfirmed = raw.Confirmations > 0; } } catch (Exception) { } }); } }