[#ChainTypeFromString]
= ChainTypeFromString
:mrdocs:

Parse a chain type from its canonical string name&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::optional&lt;ChainType&gt;
ChainTypeFromString(std::string&lowbar;view chain);
----

== Return Value

The matching chain type, or std&colon;&colon;nullopt if the name is unknown&period;

== Parameters

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


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