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

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

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
ScriptPubkey(std::span&lt;std::byte const&gt; raw);
----

== Parameters

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


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