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

Owning wrapper over a `btck&lowbar;ScriptPubkey` output script&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class ScriptPubkey
    : public xref:btck/Handle-046.adoc[Handle&lt;btck&lowbar;ScriptPubkey, btck&lowbar;script&lowbar;pubkey&lowbar;copy, btck&lowbar;script&lowbar;pubkey&lowbar;destroy&gt;]
    , public xref:btck/ScriptPubkeyApi-02.adoc[ScriptPubkeyApi&lt;ScriptPubkey&gt;]
----

== Base Classes

[cols="1,4"]
|===
| Name| Description
| `xref:btck/Handle-046.adoc[Handle&lt;btck&lowbar;ScriptPubkey, btck&lowbar;script&lowbar;pubkey&lowbar;copy, btck&lowbar;script&lowbar;pubkey&lowbar;destroy&gt;]`
| Owning RAII handle for a copyable C object of type `CType&period;`
| `xref:btck/ScriptPubkeyApi-02.adoc[ScriptPubkeyApi&lt;ScriptPubkey&gt;]`
| CRTP mixin adding script&hyphen;pubkey operations shared by the view and owning types&period;
|===

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:btck/ScriptPubkey/2constructor-0e.adoc[`ScriptPubkey`]         [.small]#[constructor]#
| Constructors
| xref:btck/ScriptPubkey/operator_assign-08.adoc[`operator&equals;`] 
| Assignment operators
| xref:btck/ScriptPubkey/ToBytes.adoc[`ToBytes`] 
| Serializes the script pubkey to its raw bytes&period;
| xref:btck/ScriptPubkey/Verify.adoc[`Verify`] 
| Verifies a spending input against this script pubkey&period;
| xref:btck/ScriptPubkey/get-06.adoc[`get`] 
| Returns the owned C handle&period;
|===


== Protected Data Members

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



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