Exemplo n.º 1
0
        private void BwBalancesQuery(object sender, DoWorkEventArgs e)
        {
            var walletBalance  = LndClient.WalletBalance();
            var channelBalance = LndClient.ChannelBalance();
            var result         = Tuple.Create(walletBalance, channelBalance);

            e.Result = result;
        }
Exemplo n.º 2
0
 private void BwBalancesQuery(object sender, DoWorkEventArgs e)
 {
     try
     {
         var walletBalance  = LndClient.WalletBalance();
         var channelBalance = LndClient.ChannelBalance();
         var result         = Tuple.Create(walletBalance, channelBalance);
         e.Result = result;
     }
     catch (RpcException)
     {
         e.Result = null;
     }
 }