[#blockheaderToJSON] = blockheaderToJSON :mrdocs: Block header to JSON == Synopsis Declared in `<rpc/blockchain.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[locks_excluded(0x7f2e2991a498)]] xref:UniValue.adoc[UniValue] blockheaderToJSON( xref:CBlockIndex.adoc[CBlockIndex] const& tip, xref:CBlockIndex.adoc[CBlockIndex] const& blockindex, xref:uint256.adoc[uint256] pow_limit); ---- == Return Value A JSON representation of the block header. == Parameters [cols="1,4"] |=== | Name| Description | *tip* | The current chain tip, used to compute confirmations. | *blockindex* | The block index entry of the header. | *pow_limit* | The proof‐of‐work limit used to compute difficulty. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#