[#ChainTypeFromString] = ChainTypeFromString :mrdocs: Parse a chain type from its canonical string name. == Synopsis Declared in `<util/chaintype.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::optional<ChainType> ChainTypeFromString(std::string_view chain); ---- == Return Value The matching chain type, or std::nullopt if the name is unknown. == Parameters [cols="1,4"] |=== | Name| Description | *chain* | The chain name to parse. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#