[#RPCArg-2constructor-0d]
= xref:RPCArg.adoc[RPCArg]::RPCArg
:relfileprefix: ../
:mrdocs:

Construct a scalar argument (not an array or object)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
RPCArg(
    std::string name,
    xref:RPCArg/Type.adoc[Type] type,
    xref:RPCArg/Fallback.adoc[Fallback] fallback,
    std::string description,
    xref:RPCArgOptions.adoc[RPCArgOptions] opts = &lcub;&rcub;);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *name*
| The argument name, or aliases separated by &apos;&verbar;&apos;&period;
| *type*
| The expected JSON type&period;
| *fallback*
| Default value or optionality of the argument&period;
| *description*
| Human&hyphen;readable description of the argument&period;
| *opts*
| Additional options controlling validation and rendering&period;
|===


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