getblockheader {rbtc} | R Documentation |
RPC-JSON API: getblockheader
Description
Returns the block header for a given hash string.
Usage
getblockheader(con, hash, verbose = TRUE)
Arguments
con |
object of class |
hash |
|
verbose |
|
Value
A S4-object of class ANSRPC
.
Details
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>.
Author(s)
Bernhard Pfaff
References
https://bitcoin.org/en/developer-reference#getblockheader, https://bitcoin.org/en/developer-reference#remote-procedure-calls-rpcs
See Also
Other Blockchain RPCs: decodescript
,
getbestblockhash
,
getblockchaininfo
,
getblockcount
, getblockhash
,
getblock
, getchaintips
,
getchaintxstats
,
getdifficulty
,
getmempoolancestors
,
getmempooldescendants
,
getmempoolentry
,
getmempoolinfo
,
getrawmempool
, gettxoutproof
,
gettxoutsetinfo
, gettxout
,
preciousblock
,
pruneblockchain
, verifychain
,
verifytxoutproof