Class
ChainParameters
Chain parameters describing the consensus rules, genesis block, subsidy schedule, and soft-fork activation heights of a specific Bitcoin network.
final class ChainParameters
Overview
Wraps Bitcoin Core’s CChainParams. Each ChainType selects a distinct set of parameters — mainnet’s consensus differs from regtest’s by activation heights, subsidy halving interval, and PoW difficulty floor, among many other fields.
Construct once per Context; attach via setChainParams(_:). The kernel copies parameters internally on that call, so this object can be released afterward.
Wraps the opaque btck_ChainParameters type; deinit calls btck_chain_parameters_destroy when the last Swift reference drops.
Topics
Initializers