[#btck-ScriptPubkey] = xref:btck.adoc[btck]::ScriptPubkey :relfileprefix: ../ :mrdocs: Owning wrapper over a `btck_ScriptPubkey` output script. == Synopsis Declared in `<kernel/bitcoinkernel_wrapper.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class ScriptPubkey : public xref:btck/Handle-046.adoc[Handle<btck_ScriptPubkey, btck_script_pubkey_copy, btck_script_pubkey_destroy>] , public xref:btck/ScriptPubkeyApi-02.adoc[ScriptPubkeyApi<ScriptPubkey>] ---- == Base Classes [cols="1,4"] |=== | Name| Description | `xref:btck/Handle-046.adoc[Handle<btck_ScriptPubkey, btck_script_pubkey_copy, btck_script_pubkey_destroy>]` | Owning RAII handle for a copyable C object of type `CType.` | `xref:btck/ScriptPubkeyApi-02.adoc[ScriptPubkeyApi<ScriptPubkey>]` | CRTP mixin adding script‐pubkey operations shared by the view and owning types. |=== == 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=`] | Assignment operators | xref:btck/ScriptPubkey/ToBytes.adoc[`ToBytes`] | Serializes the script pubkey to its raw bytes. | xref:btck/ScriptPubkey/Verify.adoc[`Verify`] | Verifies a spending input against this script pubkey. | xref:btck/ScriptPubkey/get-06.adoc[`get`] | Returns the owned C handle. |=== == Protected Data Members [cols="1,4"] |=== | Name| Description | xref:btck/ScriptPubkey/m_ptr.adoc[`m_ptr`] | The owned C handle. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#