[#CScript-IsWitnessProgram]
= xref:CScript.adoc[CScript]::IsWitnessProgram
:relfileprefix: ../
:mrdocs:

Returns whether this script is a witness program and extracts its parts&period;

== Synopsis

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

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

== Return Value

true if this script is a witness program&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *version*
| Set to the witness program version&period;
| *program*
| Set to the witness program bytes&period;
|===


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