[#CheckMinimalPush]
= CheckMinimalPush
:mrdocs:

Checks whether pushed data uses the minimal encoding for its opcode&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
CheckMinimalPush(
    std::vector&lt;unsigned char&gt; const& data,
    xref:opcodetype.adoc[opcodetype] opcode);
----

== Return Value

true if `data` is pushed with the minimal opcode and encoding&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *data*
| The pushed data bytes&period;
| *opcode*
| The push opcode used to push `data&period;`
|===


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