[#GetNetworkForMagic] = GetNetworkForMagic :mrdocs: Determines which chain a set of network magic bytes belongs to. == Synopsis Declared in `<kernel/chainparams.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::optional<ChainType> GetNetworkForMagic(xref:MessageStartChars.adoc[MessageStartChars] const& pchMessageStart); ---- == Return Value The matching chain type, or an empty optional if unrecognized. == Parameters [cols="1,4"] |=== | Name| Description | *pchMessageStart* | The message‐start bytes to identify. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#