[#btck_chain_parameters_create]
= btck&lowbar;chain&lowbar;parameters&lowbar;create
:mrdocs:

Creates a chain parameters struct with default parameters based on the passed in chain type&period;

== Synopsis

Declared in `&lt;kernel&sol;bitcoinkernel&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
xref:btck_ChainParameters-0f.adoc[btck&lowbar;ChainParameters]*
btck&lowbar;chain&lowbar;parameters&lowbar;create(xref:btck_ChainType.adoc[btck&lowbar;ChainType] chain&lowbar;type);
----

== Return Value

An allocated chain parameters opaque struct&period;

[NOTE]
====
The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^].
====
== Parameters

[cols="1,4"]
|===
| Name| Description
| *chain&lowbar;type* [in]
| Controls the chain parameters type created&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
