[#GetDifficulty]
= GetDifficulty
:mrdocs:

Get the difficulty of the net wrt to the given block index&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
double
GetDifficulty(xref:CBlockIndex.adoc[CBlockIndex] const& blockindex);
----

== Return Value

A floating point number that is a multiple of the main net minimum difficulty (4295032833 hashes)&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *blockindex*
| The block index to measure difficulty at&period;
|===


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