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