[#btck-ScriptPubkeyView] = xref:btck.adoc[btck]::ScriptPubkeyView :relfileprefix: ../ :mrdocs: Non‐owning view over a `btck_ScriptPubkey`. == Synopsis Declared in `<kernel/bitcoinkernel_wrapper.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class ScriptPubkeyView : public xref:btck/View-041.adoc[View<btck_ScriptPubkey>] , public xref:btck/ScriptPubkeyApi-02.adoc[ScriptPubkeyApi<ScriptPubkeyView>] ---- == Base Classes [cols="1,4"] |=== | Name| Description | `xref:btck/View-041.adoc[View<btck_ScriptPubkey>]` | Non‐owning view over a const C handle of type `CType.` | `xref:btck/ScriptPubkeyApi-02.adoc[ScriptPubkeyApi<ScriptPubkeyView>]` | CRTP mixin adding script‐pubkey operations shared by the view and owning types. |=== == Member Functions [cols="1,4"] |=== | Name| Description | xref:btck/ScriptPubkeyView/2constructor.adoc[`ScriptPubkeyView`] [.small]#[constructor]# | Constructs a view over `ptr.` | xref:btck/ScriptPubkeyView/ToBytes.adoc[`ToBytes`] | Serializes the script pubkey to its raw bytes. | xref:btck/ScriptPubkeyView/Verify.adoc[`Verify`] | Verifies a spending input against this script pubkey. | xref:btck/ScriptPubkeyView/get.adoc[`get`] | Returns the borrowed C handle. |=== == Protected Data Members [cols="1,4"] |=== | Name| Description | xref:btck/ScriptPubkeyView/m_ptr.adoc[`m_ptr`] | The borrowed C handle. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#