Returns the appropriate chain type from the program arguments.
Declared in <common/args.h>
[[requires_capability(0x7fbc87b8f548)]]
ChainType
GetChainType() const;
ChainType::MAIN by default; raises runtime error if an invalid combination, or unknown chain is given.