[#btck-UniqueHandle-0da-2constructor]
= xref:btck.adoc[btck]::xref:btck/UniqueHandle-0da.adoc[UniqueHandle]::UniqueHandle
:relfileprefix: ../../
:mrdocs:

Takes ownership of `ptr,` throwing if it is null&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
UniqueHandle(CType* ptr);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ptr*
| The C handle to own&period;
|===


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