[#JSONRPCRequestObj]
= JSONRPCRequestObj
:mrdocs:

JSON&hyphen;RPC 2&period;0 request, only used in bitcoin&hyphen;cli

== Synopsis

Declared in `&lt;rpc&sol;request&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:UniValue.adoc[UniValue]
JSONRPCRequestObj(
    std::string const& strMethod,
    xref:UniValue.adoc[UniValue] const& params,
    xref:UniValue.adoc[UniValue] const& id);
----

== Return Value

A JSON object representing the request&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *strMethod*
| The RPC method name&period;
| *params*
| The method parameters&period;
| *id*
| The request id echoed back in the reply&period;
|===


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