[#CBaseChainParams]
= CBaseChainParams
:mrdocs:

CBaseChainParams defines the base parameters (shared between bitcoin&hyphen;cli and bitcoind) of a given instance of the Bitcoin system&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class CBaseChainParams;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:CBaseChainParams/2constructor-0f.adoc[`CBaseChainParams`]         [.small]#[constructor]#
| Constructors
| xref:CBaseChainParams/DataDir.adoc[`DataDir`] 
| Returns the default data directory name for this chain&period;
| xref:CBaseChainParams/RPCPort.adoc[`RPCPort`] 
| Returns the default RPC port for this chain&period;
|===


== Non-Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BaseParams.adoc[`BaseParams`]
| Return the currently selected parameters&period; This won&apos;t change after app startup, except for unit tests&period;
| xref:CreateBaseChainParams.adoc[`CreateBaseChainParams`]
| Creates and returns a std&colon;&colon;unique&lowbar;ptr&lt;CBaseChainParams&gt; of the chosen chain&period;
|===


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