[#CChainParams-Main-03]
= xref:CChainParams.adoc[CChainParams]::Main
:relfileprefix: ../
:mrdocs:

`Main` overloads

== Synopses

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

Creates the mainnet chain parameters with default options&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
std::unique&lowbar;ptr&lt;CChainParams const&gt;
xref:CChainParams/Main-09.adoc[Main]();
----

[.small]#xref:CChainParams/Main-09.adoc[_» more&period;&period;&period;_]#

Creates the mainnet chain parameters with the given options&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
std::unique&lowbar;ptr&lt;CChainParams const&gt;
xref:CChainParams/Main-0b.adoc[Main](xref:CChainParams/MainNetOptions.adoc[MainNetOptions] const& options);
----

[.small]#xref:CChainParams/Main-0b.adoc[_» more&period;&period;&period;_]#

== Return Value

Owning pointer to the mainnet chain parameters&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *options*
| The mainnet configuration to apply&period;
|===


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