示例#1
0
        public async Task <ZergWalletDetail> WalletDetail(string wallet)
        {
            ZergWalletDetail walletDetail = new ZergWalletDetail();
            string           command      = string.Format("{0}walletEx?address={1}", apiUrl, wallet);
            string           results      = await GetPublicDataJson(command);

            walletDetail = JsonConvert.DeserializeObject <ZergWalletDetail>(results);
            return(walletDetail);
        }
示例#2
0
 private void WalletDetailsRefresher()
 {
     do
     {
         try {
             walletDetail = api.WalletDetail(details.walletId).Result;
             Thread.Sleep(Switchster.WALLET_DETAIL_REFRESHER_DELAY);
         }
         catch {
             System.Console.Error.WriteLine("Failed to refresh transaction data for {0}. Retrying in {1} seconds.", details.name, Switchster.RETRY_DELAY / Switchster.SECOND);
             Thread.Sleep(Switchster.RETRY_DELAY);
         }
     } while (Switchster.ALIVE);
 }