[#CRPCCommand-2constructor-03] = xref:CRPCCommand.adoc[CRPCCommand]::CRPCCommand :relfileprefix: ../ :mrdocs: Construct a command from a plain RpcMethodFnType factory function pointer. == Synopsis Declared in `<rpc/server.h>` [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. | *fn* | Factory returning the method metadata and request handler. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#