[#ChainType] = ChainType :mrdocs: Identifies which Bitcoin chain a node operates on. == Synopsis Declared in `<util/chaintype.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- enum class ChainType : int; ---- == Members [cols="1,4"] |=== | Name| Description | `MAIN` | The main Bitcoin network (mainnet). | `TESTNET` | The version 3 public test network (testnet3). | `SIGNET` | A signet network, where blocks require a signature. | `REGTEST` | A private regression test network with on‐demand block creation. | `TESTNET4` | The version 4 public test network (testnet4). |=== == Non-Member Functions [cols="1,4"] |=== | Name| Description | xref:ChainTypeFromString.adoc[`ChainTypeFromString`] | Parse a chain type from its canonical string name. | xref:ChainTypeToString.adoc[`ChainTypeToString`] | Convert a chain type to its canonical string name. | xref:CreateBaseChainParams.adoc[`CreateBaseChainParams`] | Creates and returns a std::unique_ptr<CBaseChainParams> of the chosen chain. | xref:GetNetworkForMagic.adoc[`GetNetworkForMagic`] | Determines which chain a set of network magic bytes belongs to. | xref:SelectBaseParams.adoc[`SelectBaseParams`] | Sets the params returned by Params() to those for the given chain. | xref:SelectParams.adoc[`SelectParams`] | Sets the params returned by Params() to those for the given chain type. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#