[#blockToJSON] = blockToJSON :mrdocs: Block description to JSON == Synopsis Declared in `<rpc/blockchain.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[locks_excluded(0x7f2e2991a010)]] xref:UniValue.adoc[UniValue] blockToJSON( xref:node/BlockManager.adoc[node::BlockManager]& blockman, xref:CBlock.adoc[CBlock] const& block, xref:CBlockIndex.adoc[CBlockIndex] const& tip, xref:CBlockIndex.adoc[CBlockIndex] const& blockindex, xref:TxVerbosity.adoc[TxVerbosity] verbosity, xref:uint256.adoc[uint256] pow_limit); ---- == Return Value A JSON representation of the block. == Parameters [cols="1,4"] |=== | Name| Description | *blockman* | The block manager used to read block data from disk. | *block* | The block to serialize. | *tip* | The current chain tip, used to compute confirmations. | *blockindex* | The block index entry of `block.` | *verbosity* | How much per‐transaction detail to include. | *pow_limit* | The proof‐of‐work limit used to compute difficulty. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#