blockheaderToJSON

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

NameDescription
tipThe current chain tip, used to compute confirmations.
blockindexThe block index entry of the header.
pow_limitThe proof-of-work limit used to compute difficulty.