[#CreateChainParams]
= CreateChainParams
:mrdocs:

Creates and returns a std&colon;&colon;unique&lowbar;ptr&lt;CChainParams&gt; of the chosen chain&period;

== Synopsis

Declared in `&lt;chainparams&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::unique&lowbar;ptr&lt;CChainParams const&gt;
CreateChainParams(
    xref:ArgsManager.adoc[ArgsManager] const& args,
    xref:ChainType.adoc[ChainType] chain);
----

== Return Value

The consensus and network parameters for the chosen chain&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *args*
| The active argument manager, used to apply chain overrides&period;
| *chain*
| The chain type to build parameters for&period;
|===


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