getblock: RPC-JSON API: getblock

View source: R/BlockchainRpcs.R

getblockR Documentation

RPC-JSON API: getblock

Description

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.

Usage

getblock(con, blockhash, verbosity = c("l1", "l0", "l2"))

Arguments

con

object of class CONRPC.

blockhash

character, the block hash.

verbosity

character, level of returned details.

Details

Returns information of a block hash. The returned level of details depends on the argument verbosity.

Value

A S4-object of class ANSRPC.

Author(s)

Bernhard Pfaff

References

https://bitcoin.org/en/developer-reference#getblock, https://bitcoin.org/en/developer-reference#remote-procedure-calls-rpcs

See Also

Other Blockchain RPCs: decodescript(), getbestblockhash(), getblockchaininfo(), getblockcount(), getblockhash(), getblockheader(), getchaintips(), getchaintxstats(), getdifficulty(), getmempoolancestors(), getmempooldescendants(), getmempoolentry(), getmempoolinfo(), getrawmempool(), gettxout(), gettxoutproof(), gettxoutsetinfo(), pruneblockchain(), verifychain(), verifytxoutproof()


rbch documentation built on Sept. 28, 2024, 1:07 a.m.

Related to getblock in rbch...