blocknr_to_hash: blocknr_to_hash

Description Usage Arguments Value Examples

Description

Gets the blockhash corresponding to a certain blocknr via chainquery.com

Usage

1
blocknr_to_hash(blocknr, writecsv = FALSE, filename)

Arguments

blocknr

a vector of blocknumbers

writecsv

logical, should a .csv file be created

filename

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

Value

a data.frame with the blocknr and the blockhash256 character long hash of the blocknr

Examples

1
2
3
4
5
6
## Not run: 
blocknr_to_hash(blocknr = 500000:500010)
blocknr_to_hash(blocknr = 500000:500010, writecsv = TRUE)
blocknr_to_hash(blocknr = 500000:500010, writecsv = TRUE, filename = "hash.csv")

## End(Not run)

thomas-hillebrand/bcdataprep documentation built on May 12, 2019, 1:31 a.m.