[#transaction_identifier-FromHex]
= xref:transaction_identifier.adoc[transaction&lowbar;identifier]::FromHex
:relfileprefix: ../
:mrdocs:

Builds an identifier by parsing a hex string&period;

== Synopsis

Declared in `&lt;primitives&sol;transaction&lowbar;identifier&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
std::optional&lt;transaction&lowbar;identifier&gt;
FromHex(std::string&lowbar;view hex);
----

== Return Value

The parsed identifier, or std&colon;&colon;nullopt if the hex is invalid&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *hex*
| The hex representation to parse&period;
|===


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