[#RPCArg-MatchesType]
= xref:RPCArg.adoc[RPCArg]::MatchesType
:relfileprefix: ../
:mrdocs:

Check whether the request JSON type matches&period; Returns true if type matches, or object describing error(s) if not&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:UniValue.adoc[UniValue]
MatchesType(xref:UniValue.adoc[UniValue] const& request) const;
----

== Return Value

An empty value if the type matches, or an object describing the errors&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *request*
| The value passed for this argument&period;
|===


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