[#JSONRPCReplyObj] = JSONRPCReplyObj :mrdocs: Build a JSON‐RPC reply object from a result or error. == Synopsis Declared in `<rpc/request.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:UniValue.adoc[UniValue] JSONRPCReplyObj( xref:UniValue.adoc[UniValue] result, xref:UniValue.adoc[UniValue] error, std::optional<UniValue> id, xref:JSONRPCVersion.adoc[JSONRPCVersion] jsonrpc_version); ---- == Return Value A JSON object representing the reply. == Parameters [cols="1,4"] |=== | Name| Description | *result* | The result value, if the call succeeded. | *error* | The error value, if the call failed. | *id* | The request id being replied to. | *jsonrpc_version* | The protocol version to format the reply for. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#