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

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

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

            return(r);
        }
예제 #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;
     }));
 }