[#RPCMethod-2constructor-02]
= xref:RPCMethod.adoc[RPCMethod]::RPCMethod
:relfileprefix: ../
:mrdocs:

Constructors

== Synopses

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

Construct a method description without an implementation handler&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:RPCMethod/2constructor-01.adoc[RPCMethod](
    std::string name,
    std::string description,
    std::vector&lt;RPCArg&gt; args,
    xref:RPCResults.adoc[RPCResults] results,
    xref:RPCExamples.adoc[RPCExamples] examples);
----

[.small]#xref:RPCMethod/2constructor-01.adoc[_» more&period;&period;&period;_]#

Construct a method description with an implementation handler&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:RPCMethod/2constructor-05.adoc[RPCMethod](
    std::string name,
    std::string description,
    std::vector&lt;RPCArg&gt; args,
    xref:RPCResults.adoc[RPCResults] results,
    xref:RPCExamples.adoc[RPCExamples] examples,
    xref:RPCMethod/RPCMethodImpl.adoc[RPCMethodImpl] fun);
----

[.small]#xref:RPCMethod/2constructor-05.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *name*
| The method name&period;
| *description*
| Human&hyphen;readable description of the method&period;
| *args*
| The method&apos;s arguments&period;
| *results*
| The method&apos;s possible results&period;
| *examples*
| Example invocations for the help text&period;
| *fun*
| The function implementing the method&period;
|===


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