View source: R/BlockchainRpcs.R
getblock | R Documentation |
Returns information of a block hash. The returned level of details depends on the
argument verbosity
.
getblock(con, blockhash, verbosity = c("l1", "l0", "l2"))
con |
object of class |
blockhash |
|
verbosity |
|
If verbosity is 'l0', returns a string that is serialized, hex-encoded data for block 'hash'. If verbosity is 'l1' (the default), returns an object with information about block <hash>. If verbosity is 'l2', returns an object with information about block <hash> and information about each transaction.
A S4-object of class ANSRPC
.
Bernhard Pfaff
https://bitcoin.org/en/developer-reference#getblock, https://bitcoin.org/en/developer-reference#remote-procedure-calls-rpcs
Other Blockchain RPCs: decodescript
,
getbestblockhash
,
getblockchaininfo
,
getblockcount
, getblockhash
,
getblockheader
, getchaintips
,
getchaintxstats
,
getdifficulty
,
getmempoolancestors
,
getmempooldescendants
,
getmempoolentry
,
getmempoolinfo
,
getrawmempool
, gettxoutproof
,
gettxoutsetinfo
, gettxout
,
preciousblock
,
pruneblockchain
, verifychain
,
verifytxoutproof
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.