<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "BitcoinKernel",
  "identifier" : "/documentation/BitcoinKernel/ChainType",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "BitcoinKernel"
    ],
    "preciseIdentifier" : "s:13BitcoinKernel9ChainTypeO"
  },
  "title" : "ChainType"
}
-->

# ChainType

The Bitcoin network to configure a [`Context`](/documentation/BitcoinKernel/Context) / [`ChainParameters`](/documentation/BitcoinKernel/ChainParameters)
for.

```
enum ChainType
```

## Overview

Each case maps to a distinct set of consensus rules defined in Bitcoin
Core’s [`chainparams.cpp`](https://github.com/bitcoin/bitcoin/blob/master/src/kernel/chainparams.cpp):
genesis block, subsidy-halving interval, proof-of-work limits, soft-fork
activation heights, and (for signet) block-signing challenge.

Maps to the `btck_ChainType` constants in the kernel C API. The raw
values are stable and match `btck_CHAIN_TYPE_*`.