Block description to JSON
Declared in <rpc/blockchain.h>
[[locks_excluded(0x7f2e2991a010)]]
UniValue
blockToJSON(
node::BlockManager& blockman,
CBlock const& block,
CBlockIndex const& tip,
CBlockIndex const& blockindex,
TxVerbosity verbosity,
uint256 pow_limit);
A JSON representation of the block.
| 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. |