get_blockinfo: get_blockinfo

Description Usage Arguments Details Value Examples

Description

Fetch basic blockinfos fo a vector of blockhashes and optionally save them into a .csv file

Usage

1
get_blockinfo(blocknr, blockhash, writecsv = FALSE, filename)

Arguments

blocknr

vector of blocknumbers for which to generate the blockinfo file.

blockhash

vector of blockhashes corresponding to the blocknr.

writecsv

logical, should a .csv file be created.

filename

optional: the name of the file to be created (has to be "xxx.csv").

Details

For eash blocknumber one line will be added to the data.frame. It contains the blocknumber, blocksize in bytes, blockweight, blocktime, difficulty, number of transactions in the rawmempool, number of verified transaction in this block and the time

Value

a data.frame with the infos of the requested blocks.

Examples

1
2
3
4
5
6
7
8
## Not run: 
blocknr <- 499999
blockhash <- "0000000000000000007962066dcd6675830883516bcf40047d42740a85eb2919"
get_blockinfo(blocknr = blocknr, blockhash = blockhash)
get_blockinfo(blocknr = blocknr, blockhash = blockhash, writecsv = TRUE)
get_blockinfo(blocknr = blocknr, blockhash = blockhash, writecsv = TRUE, filename = "hashes.csv")

## End(Not run)

thomas-hillebrand/bcdataprep_node documentation built on May 7, 2019, 9:40 a.m.