private void btnAddressBallance_Click(object sender, RoutedEventArgs e)
{
try
{
WriteText("--- Minimal 0 confirmation to show ---");
var ad = WL.getAddressBallance(tbAddress.Text);
WriteText($"Address: {ad.AddressStr} - Ballance ฿{BitcoinLib.Bitcoin.BTCtoDecimal(ad.Balance)} - Total Received: {BitcoinLib.Bitcoin.BTCtoDecimal(ad.TotalReceived)} -Label: {ad.Label}");
WriteText("--- Minimal 12 confirmation to show ---");
ad = WL.getAddressBallance(tbAddress.Text, 12);
WriteText($"Address: {ad.AddressStr} - Ballance ฿{BitcoinLib.Bitcoin.BTCtoDecimal(ad.Balance)} - Total Received: {BitcoinLib.Bitcoin.BTCtoDecimal(ad.TotalReceived)} -Label: {ad.Label}");
}
catch (Exception ex)
{
if (tbAddress.Text.Trim().Length < 1)
WriteText($"ERROR: Please set your wallet address below !");
else
WriteText($"ERROR: {ex.Message}");
}
}