public string PostRequest(string method, List <string> rpcBody, out string returnCode)
        {
            RpcMethod = method;
            foreach (var rpc in rpcBody)
            {
                RpcParameter += "," + rpc;
            }
            RpcParameter = RpcParameter.Substring(1);
            RpcBody      = "{\"jsonrpc\":\"2.0\",\"method\":\"" + RpcMethod + "\",\"params\":{\"rawtxs\":\"" + RpcParameter + "\"},\"id\":0}";

            return(HttpHelper.PostResponse(RpcUrl, RpcBody, out returnCode));
        }
Exemple #2
0
        public string PostRequest(string method, List <string> rpcBody, out string returnCode)
        {
            RpcMethod = method;
            foreach (var rpc in rpcBody)
            {
                RpcParameter += "," + rpc;
            }
            RpcParameter = RpcParameter.Substring(1);
            RpcBody      = "{\"jsonrpc\":\"2.0\",\"method\":\"" + RpcMethod + "\",\"params\":{\"rawtxs\":\"" + RpcParameter + "\"},\"id\":0}";
            Console.WriteLine("One thread rpc request generated successfully.");

            return(HttpHelper.PostResponse(RpcUrl, RpcBody, out returnCode));
        }