Ejemplo n.º 1
0
 public static List\\ GetUnclaimed(Net net, string address)
 {
   var neoscan = new NeoscanApi(net);
   var response = neoscan.GetUnclaimed(address);
   var result = response.Claimable.Select(c =\>\ new ClaimEntry
   {
     index = c.N,
     txid = c.Txid,
     value = c.Unclaimed
   });
   return result.ToList();
 }
Ejemplo n.º 2
0
 public static Dictionary\\\>\ GetUnspent(Net net, string address)
 {
   var result = new Dictionary\\\>\();
   var neoscan = new NeoscanApi(net);
   var response = neoscan.GetBalance(address);
   foreach (var b in response.Balance)
   {
     var entry = b.Unspent.Select(u =\>\
       new UnspentEntry
       {
         index = u.N,
         txid = u.Txid,
         value = u.Value
       }
     );
     result.Add(b.Asset.ToUpper(), entry.ToList());
   }
   return result;
 }
Ejemplo n.º 3
0
 public Rpc(Net net)
 {
     NeoscanApi = new NeoscanApi(net);
 }