[#CRPCCommand-2constructor-03]
= xref:CRPCCommand.adoc[CRPCCommand]::CRPCCommand
:relfileprefix: ../
:mrdocs:

Construct a command from a plain RpcMethodFnType factory function pointer&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
CRPCCommand(
    std::string category,
    xref:RpcMethodFnType.adoc[RpcMethodFnType] fn);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *category*
| The help category the command is grouped under&period;
| *fn*
| Factory returning the method metadata and request handler&period;
|===


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