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(); }
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; }
public Rpc(Net net) { NeoscanApi = new NeoscanApi(net); }