[#IsWitnessStandard]
= IsWitnessStandard
:mrdocs:

Check if the transaction is over standard P2WSH resources limit&colon; 3600bytes witnessScript size, 80bytes per witness stack element, 100 witness stack elements These limits are adequate for multisignatures up to n&hyphen;of&hyphen;100 using OP&lowbar;CHECKSIG, OP&lowbar;ADD, and OP&lowbar;EQUAL&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
IsWitnessStandard(
    xref:CTransaction.adoc[CTransaction] const& tx,
    xref:CCoinsViewCache.adoc[CCoinsViewCache] const& mapInputs);
----

== Description

Also enforce a maximum stack item size limit and no annexes for tapscript spends&period;

== Return Value

True if every witness stays within standard resource limits&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *tx*
| Transaction whose witness data is checked&period;
| *mapInputs*
| View providing the outputs spent by the transaction&period;
|===


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