get_rawmempool: get_rawmempool

Description Usage Arguments Details Value Examples

View source: R/get_rawmempool.R

Description

Calls the chainquery.com site and makes a snapshot of the transactions of the rawmempool.

Usage

1
get_rawmempool(writecsv = FALSE, filename)

Arguments

writecsv

logical, should a .csv file be created

filename

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

Details

Since it needs to download a lot of data this function can take up to 15 sec. to run. A folder named "data" must exist in the current work directory if writecsv is set to TRUE. The default name is rawmempool_####.csv where #### is the next blocknumber. By default it overwrites itself if there is already a .csv file of the transaction for the next block. This guarantees that only one file per block exists which is the most recent one.

Value

a data.frame with size, fee, time, height, and transactionid or NULL if a .csv file was saved.

Examples

1
2
3
4
5
6
## Not run: 
get_rawmempool()
get_rawmempool(writecsv = TRUE)
get_rawmempool(writecsv = TRUE, filename = "snapshot01.csv")

## End(Not run)

Ziegelsteintom/bcdataprep documentation built on May 16, 2019, 6:54 p.m.