[#btck_chain_parameters_get_consensus_params]
= btck&lowbar;chain&lowbar;parameters&lowbar;get&lowbar;consensus&lowbar;params
:mrdocs:

Get btck&lowbar;ConsensusParams from btck&lowbar;ChainParameters&period; The returned btck&lowbar;ConsensusParams pointer is valid only for the lifetime of the btck&lowbar;ChainParameters object and must not be destroyed by the caller&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;&lowbar;&lowbar;nonnull&lowbar;&lowbar;&rsqb;&rsqb;
xref:btck_ConsensusParams-08.adoc[btck&lowbar;ConsensusParams] const*
btck&lowbar;chain&lowbar;parameters&lowbar;get&lowbar;consensus&lowbar;params(xref:btck_ChainParameters-0f.adoc[btck&lowbar;ChainParameters] const* chain&lowbar;parameters);
----

== Return Value

The btck&lowbar;ConsensusParams&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *chain&lowbar;parameters* [in]
| Non&hyphen;null&period;
|===


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