예제 #1
0
        public static void LatestTestNet(string add)
        {
            RemoteRPCNode api;

            try
            {
                api = new RemoteRPCNode("http://seed5.neo.org:20332", "https://test2.cityofzion.io:443", "http://seed3.ngd.network:20332", "http://seed4.ngd.network:20332", "http://seed1.ngd.network:20332", "https://neoscan-testnet.io:20332");
                Console.WriteLine("*Syncing balances  From Test Net ...");
            }
            catch (Exception)
            {
                Console.WriteLine("Nodes not responding ....... , Try later ");
                throw;
            }
            var balances = api.GetAssetBalancesOf(add);

            foreach (var entry in balances)
            {
                Console.WriteLine(entry.Value + " " + entry.Key);
            }
        }
예제 #2
0
        public static void LatestMainNet(string add)
        {
            RemoteRPCNode api;

            try
            {
                api = new RemoteRPCNode("http://seed9.ngd.network:10332", "https://seed1.switcheo.network:10331", "http://seed10.ngd.network:10332", "http://nep5.otcgo.cn:10332", "http://seed6.ngd.network:10332", "http://seed4.neo.org:10332", "http://neoscan.io", "http://seed6.ngd.network:10332", "http://seed.neoeconomy.io:10332");
                Console.WriteLine("*Syncing balances From Main Net ...");
            }
            catch (Exception)
            {
                Console.WriteLine("Nodes not responding ....... , Try later ");
                throw;
            }
            var balances = api.GetAssetBalancesOf(add);

            foreach (var entry in balances)
            {
                Console.WriteLine(entry.Value + " " + entry.Key);
            }
        }