Пример #1
0
        // GET: /view/chainheight
        public static HttpResponse ViewChainHeight(HttpRequest request)
        {
            ViewerController controller = new ViewerController();
            var response = controller.GetChainHeight();

            return(CreateHttpResponse(response));
        }
Пример #2
0
        private static void RunShowHeight()
        {
            ViewerController viewer = new ViewerController();
            var response            = viewer.GetChainHeight();

            if (response.Code == "1")
            {
                Console.WriteLine(JsonConvert.SerializeObject(response.Data));
            }
            else
            {
                Console.WriteLine(response.Message);
            }
        }