Instance Method
setChainParams(_:)
Sets the chain parameters — determines which Bitcoin network the resulting Context validates against.
func setChainParams(_ params: ChainParameters)
Parameters
-
params
-
Chain parameters, typically constructed via init(_:) from a ChainType.
Discussion
The C API copies the parameters internally, so params may be deallocated after this call returns. Calling this replaces any previously-set chain parameters on the same options object.