Returns the block header for a given hash string.
getblockheader(con, hash, verbose = TRUE)
A S4-object of class ANSRPC
.
object of class CONRPC
.
character
the block hash.
logical
TRUE
for a json object,
FALSE
for the hex encoded data.
Bernhard Pfaff
If verbose is false, returns a string that is serialized, hex-encoded data for blockheader 'hash'. If verbose is true, returns an Object with information about blockheader <hash>.
https://bitcoin.org/en/developer-reference#getblockheader, https://bitcoin.org/en/developer-reference#remote-procedure-calls-rpcs
Other Blockchain RPCs:
decodescript()
,
getbestblockhash()
,
getblock()
,
getblockchaininfo()
,
getblockcount()
,
getblockhash()
,
getchaintips()
,
getchaintxstats()
,
getdifficulty()
,
getmempoolancestors()
,
getmempooldescendants()
,
getmempoolentry()
,
getmempoolinfo()
,
getrawmempool()
,
gettxout()
,
gettxoutproof()
,
gettxoutsetinfo()
,
pruneblockchain()
,
verifychain()
,
verifytxoutproof()