5 #ifndef FABCOIN_RPC_BLOCKCHAIN_H 6 #define FABCOIN_RPC_BLOCKCHAIN_H
double GetDifficulty(const CBlockIndex *blockindex=nullptr)
Get the difficulty of the net wrt to the given block index, or the chain tip if not provided...
void RPCNotifyBlockChange(bool ibd, const CBlockIndex *)
Callback for when block tip changed.
UniValue mempoolInfoToJSON()
Mempool information to JSON.
UniValue mempoolToJSON(bool fVerbose=false)
Mempool to JSON.
The block chain is a tree shaped structure starting with the genesis block at the root...
UniValue blockheaderToJSON(const CBlockIndex *blockindex)
Block header to JSON.
UniValue blockToJSON(const CBlock &block, const CBlockIndex *blockindex, bool txDetails=false)
Block description to JSON.