[#DeriveTarget] = DeriveTarget :mrdocs: Convert nBits value to target. == Synopsis Declared in `<pow.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::optional<arith_uint256> DeriveTarget( unsigned int nBits, xref:uint256.adoc[uint256] pow_limit); ---- == Return Value the proof‐of‐work target or nullopt if the nBits value is invalid (due to overflow or exceeding pow_limit) == Parameters [cols="1,4"] |=== | Name| Description | *nBits* [in] | compact representation of the target | *pow_limit* [in] | PoW limit (consensus parameter) |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#