[#CScriptCheck-2constructor-01] = xref:CScriptCheck.adoc[CScriptCheck]::CScriptCheck :relfileprefix: ../ :mrdocs: Construct a script check for a single input of a spending transaction. == Synopsis Declared in `<validation.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- CScriptCheck( xref:CTxOut.adoc[CTxOut] const& outIn, xref:CTransaction.adoc[CTransaction] const& txToIn, xref:SignatureCache.adoc[SignatureCache]& signature_cache, unsigned int nInIn, xref:script_verify_flags.adoc[script_verify_flags] flags, bool cacheIn, xref:PrecomputedTransactionData.adoc[PrecomputedTransactionData]* txdataIn); ---- == Parameters [cols="1,4"] |=== | Name| Description | *outIn* | The output being spent by the input. | *txToIn* | The transaction that spends the output. | *signature_cache* | Cache used to avoid repeating signature verifications. | *nInIn* | Index of the input within the spending transaction. | *flags* | Script verification flags to apply. | *cacheIn* | Whether successful signature checks may be cached. | *txdataIn* | Precomputed transaction data reused across inputs. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#