[#CBlockIndex-nChainWork]
= xref:CBlockIndex.adoc[CBlockIndex]::nChainWork
:relfileprefix: ../
:mrdocs:

(memory only) Total amount of work (expected number of hashes) in the chain up to and including this block

== Synopsis

Declared in `&lt;chain&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:arith_uint256.adoc[arith&lowbar;uint256] nChainWork = &lcub;&rcub;;
----


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