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

Returns whether the script only pushes data onto the stack&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
IsPushOnly(xref:prevector-01/const_iterator.adoc[const&lowbar;iterator] pc) const;
----

== Return Value

true if every opcode from `pc` onward is a push&period; Called by IsStandardTx and P2SH&sol;BIP62 VerifyScript (which makes it consensus&hyphen;critical)&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *pc*
| Iterator to the position to start scanning from&period;
|===


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