[#btck-ScriptPubkey-2constructor-0e] = xref:btck.adoc[btck]::xref:btck/ScriptPubkey.adoc[ScriptPubkey]::ScriptPubkey :relfileprefix: ../../ :mrdocs: Constructors == Synopses Declared in `<kernel/bitcoinkernel_wrapper.h>` Constructs a script pubkey from its raw serialized bytes. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:btck/ScriptPubkey/2constructor-00.adoc[ScriptPubkey](std::span<std::byte const> raw); ---- [.small]#xref:btck/ScriptPubkey/2constructor-00.adoc[_» more..._]# Constructs an owning copy from a view. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:btck/ScriptPubkey/2constructor-09.adoc[ScriptPubkey](xref:btck/ScriptPubkeyView.adoc[ScriptPubkeyView] const& view); ---- [.small]#xref:btck/ScriptPubkey/2constructor-09.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *raw* | The serialized script bytes. | *view* | The view to copy. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#