[#btck-Block-Check]
= xref:btck.adoc[btck]::xref:btck/Block.adoc[Block]::Check
:relfileprefix: ../../
:mrdocs:

Runs the requested consensus checks on the block&period;

== Synopsis

Declared in `&lt;kernel&sol;bitcoinkernel&lowbar;wrapper&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
Check(
    xref:btck/ConsensusParamsView.adoc[ConsensusParamsView] const& consensus&lowbar;params,
    xref:btck/BlockCheckFlags.adoc[BlockCheckFlags] flags,
    xref:btck/BlockValidationState.adoc[BlockValidationState]& state) const;
----

== Return Value

True when the block passes the requested checks&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *consensus&lowbar;params*
| The consensus parameters to check against&period;
| *flags*
| Which checks to run&period;
| *state*
| Receives the validation result&period;
|===


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