Description Usage Arguments Details Value Examples
View source: R/get_blockinfo.R
Fetch basic blockinfos fo a vector of blockhashes and optionally save them into a .csv file
1 | get_blockinfo(blocknr, blockhash, writecsv = FALSE, filename)
|
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"). |
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
a data.frame with the infos of the requested blocks.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.