[#btck_context_options_set_chainparams]
= btck&lowbar;context&lowbar;options&lowbar;set&lowbar;chainparams
:mrdocs:

Sets the chain params for the context options&period; The context created with the options will be configured for these chain parameters&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;
void
btck&lowbar;context&lowbar;options&lowbar;set&lowbar;chainparams(
    xref:btck_ContextOptions-0d.adoc[btck&lowbar;ContextOptions]* context&lowbar;options,
    xref:btck_ChainParameters-0f.adoc[btck&lowbar;ChainParameters] const* chain&lowbar;parameters);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *context&lowbar;options* [in]
| Non&hyphen;null, previously created by xref:btck_context_options_create.adoc[`btck&lowbar;context&lowbar;options&lowbar;create`]&period;
| *chain&lowbar;parameters* [in]
| Is set to the context options&period;
|===


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