[#ParseHashV]
= ParseHashV
:mrdocs:

Parse a hex&hyphen;encoded hash from a UniValue, throwing an RPC error if it is not valid hex&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:uint256.adoc[uint256]
ParseHashV(
    xref:UniValue.adoc[UniValue] const& v,
    std::string&lowbar;view name);
----

== Return Value

The parsed 256&hyphen;bit hash&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *v*
| The value expected to hold a hex&hyphen;encoded hash&period;
| *name*
| The parameter name used in error messages&period;
|===


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