Block header to JSON
Synopsis
Declared in <rpc/blockchain.h>
[[locks_excluded(0x7f2e2991a498)]]
UniValue
blockheaderToJSON(
CBlockIndex const& tip,
CBlockIndex const& blockindex,
uint256 pow_limit);
Return Value
A JSON representation of the block header.
Parameters
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. |
Created with MrDocs