private void RefreshAccount(string account) { var balance = EthereumService.GetBalance(account, BlockTag.Latest); var pending = EthereumService.GetBalance(account, BlockTag.Pending); var txCount = EthereumService.GetTransactionCount(account, BlockTag.Latest); var changes = EthereumService.GetFilterChanges(GetCurrentAccount().FilterId); BeginInvoke((MethodInvoker) delegate { lblBalance.Text = string.Format("{0} Eth", balance.WeiToEther()); lblPending.Text = string.Format("{0} Eth", pending.WeiToEther()); lblTxCount.Text = txCount.ToString(); }); }