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

Constructors

== Synopses

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

Constructs a script pubkey from its raw serialized bytes&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:btck/ScriptPubkey/2constructor-00.adoc[ScriptPubkey](std::span&lt;std::byte const&gt; raw);
----

[.small]#xref:btck/ScriptPubkey/2constructor-00.adoc[_» more&period;&period;&period;_]#

Constructs an owning copy from a view&period;


[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&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *raw*
| The serialized script bytes&period;
| *view*
| The view to copy&period;
|===


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