public bool Run(string chainID) { Request = new ChainHeadRequest(); Request.param.ChainID = chainID; return(Run(Request)); }
public bool Run(ChainHeadRequest requestData) { var reply = Client.MakeRequest <ChainHeadRequest>(requestData); JsonReply = reply.Content; if (reply.StatusCode == System.Net.HttpStatusCode.OK) { Result = JsonConvert.DeserializeObject <ChainHeadResult>(reply.Content); return(true); } return(false); }