[#ParseSighashString]
= ParseSighashString
:mrdocs:

Parse a sighash string representation and raise an RPC error if it is invalid&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::optional&lt;int&gt;
ParseSighashString(xref:UniValue.adoc[UniValue] const& sighash);
----

== Return Value

The parsed sighash flags, or nullopt if none was given&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *sighash*
| The sighash type as a JSON string&period;
|===


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