Example #1
0
        public bool Run(long height)
        {
            Request = new ABlockByHeightRequest();
            Request.param.Height = height;

            return(Run(Request));
        }
Example #2
0
        public bool Run(ABlockByHeightRequest requestData)
        {
            var restReply = Client.MakeRequest <ABlockByHeightRequest>(requestData);

            JsonReply = restReply.Content;

            if (restReply.StatusCode == System.Net.HttpStatusCode.OK)
            {
                Result = JsonConvert.DeserializeObject <ABlockByHeightResult>(restReply.Content);
                return(true);
            }

            return(false);
        }