Example #1
0
        public string GetAddresses()
        {
            var u = string.Format(addrUrl, WalletId, MainPwd);
            var r = HttpExecutor.Get(u);

            return(r);
        }
Example #2
0
        public string GenerateAddress(string label)
        {
            string u = string.Format(gaddr, WalletId, MainPwd, SecondPwd, label);
            string r = HttpExecutor.Get(u);

            return(r);
        }
Example #3
0
        public string GetBalance()
        {
            var u = string.Format(balanceUrl, WalletId, MainPwd);
            var r = HttpExecutor.Get(u);

            return(r);
        }
Example #4
0
 public bool Pay(string to, decimal amount)
 {
     return(Except <bool>(() =>
     {
         var toUnit = amount * 100000000 - 10000;
         var url = string.Format(payUrl, WalletId, MainPwd, SecondPwd, to, toUnit);
         var r = HttpExecutor.Get(url);
         Log.Info(r);
         //var ro = JsonConvert.DeserializeObject<TransId>(r);
         //ro.to = to; ro.amount = amount; ro.when = DateTime.Now;
         //tc.AddPayment(ro);
         return true;
     }));
 }