[#CheckTransaction]
= CheckTransaction
:mrdocs:

Performs context&hyphen;independent validity checks on a transaction&period;

== Synopsis

Declared in `&lt;consensus&sol;tx&lowbar;check&period;h&gt;`

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

== Return Value

true if the transaction passes the context&hyphen;independent checks&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *tx*
| The transaction to check&period;
| *state*
| Receives the validation result and rejection reason on failure&period;
|===


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