[#ExecuteHTTPRPC]
= ExecuteHTTPRPC
:mrdocs:

Execute a single HTTP request containing one or more JSONRPC requests&period; Specified jreq will be modified and status will be returned&period;

== Synopsis

Declared in `&lt;httprpc&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:UniValue.adoc[UniValue]
ExecuteHTTPRPC(
    xref:UniValue.adoc[UniValue] const& valRequest,
    xref:JSONRPCRequest.adoc[JSONRPCRequest]& jreq,
    xref:HTTPStatusCode.adoc[HTTPStatusCode]& status);
----

== Return Value

The JSON response, either a single result or a batch array&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *valRequest*
| The parsed JSON body, either a single request or a batch array&period;
| *jreq*
| The request context to execute against&semi; modified in place&period;
| *status*
| Set to the HTTP status code that should be sent in the reply&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
