[#GetTarget]
= GetTarget
:mrdocs:

&ast; Get the target for a given block index&period;

== Synopsis

Declared in `&lt;rpc&sol;util&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:uint256.adoc[uint256]
GetTarget(
    xref:CBlockIndex.adoc[CBlockIndex] const& blockindex,
    xref:uint256.adoc[uint256] pow&lowbar;limit);
----

== Return Value

the target

== Parameters

[cols="1,4"]
|===
| Name| Description
| *blockindex* [in]
| the block
| *pow&lowbar;limit* [in]
| PoW limit (consensus parameter)
|===


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