[#btck-ContextOptions]
= xref:btck.adoc[btck]::ContextOptions
:relfileprefix: ../
:mrdocs:

Owning wrapper over `btck&lowbar;ContextOptions`, configuring a Context before creation&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class ContextOptions
    : public xref:btck/UniqueHandle-0da.adoc[UniqueHandle&lt;btck&lowbar;ContextOptions, btck&lowbar;context&lowbar;options&lowbar;destroy&gt;]
----

== Base Classes

[cols="1,4"]
|===
| Name| Description
| `xref:btck/UniqueHandle-0da.adoc[UniqueHandle&lt;btck&lowbar;ContextOptions, btck&lowbar;context&lowbar;options&lowbar;destroy&gt;]`
| Owning RAII handle for a non&hyphen;copyable C object, backed by std&colon;&colon;unique&lowbar;ptr&period;
|===

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:btck/ContextOptions/2constructor.adoc[`ContextOptions`]         [.small]#[constructor]#
| Constructs an empty set of context options&period;
| xref:btck/ContextOptions/SetChainParams.adoc[`SetChainParams`] 
| Sets the chain parameters for the context&period;
| xref:btck/ContextOptions/SetNotifications.adoc[`SetNotifications`] 
| Registers a kernel notification handler for the context&period;
| xref:btck/ContextOptions/SetValidationInterface.adoc[`SetValidationInterface`] 
| Registers a validation event handler for the context&period;
| xref:btck/ContextOptions/get-04.adoc[`get`] 
| Returns the owned C handle&period;
|===


== Protected Types

[cols="1,4"]
|===
| Name| Description
| xref:btck/ContextOptions/Deleter.adoc[`Deleter`] 
| Custom deleter that forwards to the C destroy function&period;
|===


== Protected Data Members

[cols="1,4"]
|===
| Name| Description
| xref:btck/ContextOptions/m_ptr.adoc[`m&lowbar;ptr`] 
| The owned C handle&period;
|===



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