Пример #1
0
        public void TestLocalNodeInfo()
        {
            using var client = new Client.Client(key, host);
            using var source = new CancellationTokenSource();
            source.CancelAfter(TimeSpan.FromMinutes(1));
            var ni = client.LocalNodeInfo(context: source.Token).Result;

            Console.WriteLine(ni.ToString());
        }
Пример #2
0
        public void TestLocalNodeInfo()
        {
            var host   = "localhost:8080";
            var key    = "KxDgvEKzgSBPPfuVfw67oPQBSjidEiqTHURKSDL1R7yGaGYAeYnr".LoadWif();
            var client = new Client.Client(key, host);
            var source = new CancellationTokenSource();

            source.CancelAfter(TimeSpan.FromMinutes(1));
            var ni = client.LocalNodeInfo(source.Token);

            Console.WriteLine(ni.ToString());
        }