[#ValidateInputsStandardness]
= ValidateInputsStandardness
:mrdocs:

Check for standard transaction types

== Synopsis

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

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

== Return Value

valid TxValidationState if all inputs (scriptSigs) use only standard transaction forms else returns invalid TxValidationState which states why the first invalid input is not standard

== Parameters

[cols="1,4"]
|===
| Name| Description
| *tx* [in]
| Transaction whose inputs are checked
| *mapInputs* [in]
| Map of previous transactions that have outputs we&apos;re spending
|===


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