[#GetScriptForRawPubKey]
= GetScriptForRawPubKey
:mrdocs:

Generate a P2PK script for the given pubkey&period;

== Synopsis

Declared in `&lt;script&sol;solver&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:CScript.adoc[CScript]
GetScriptForRawPubKey(xref:CPubKey.adoc[CPubKey] const& pubkey);
----

== Return Value

A pay&hyphen;to&hyphen;public&hyphen;key script for pubkey&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *pubkey*
| The public key to pay to&period;
|===


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