[#CScript-IsPayToAnchor-0f]
= xref:CScript.adoc[CScript]::IsPayToAnchor
:relfileprefix: ../
:mrdocs:

Checks if output of IsWitnessProgram comes from a P2A output script

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
bool
IsPayToAnchor(
    int version,
    std::vector&lt;unsigned char&gt; const& program);
----

== Return Value

true if `version` and `program` describe a P2A output&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *version*
| Witness program version&period;
| *program*
| Witness program bytes&period;
|===


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