nxt.getBlocks: Get a set of blocks from the NXT blockchain

Description Usage Arguments Value Author(s) See Also

Description

This function queries the NXT blockchain and returns a set of blocks meeting a certain set of criteria.

Usage

1
2
3
4
nxt.getBlocks(con, block.ids = NULL, generator.ids = NULL,
  start.ts = NULL, end.ts = NULL, start.height = NULL,
  end.height = NULL, nonzero.fee = FALSE, ts.from.db = TRUE,
  id.from.db = TRUE)

Arguments

con

Connection object to the NXT H2 database.

block.ids

A vector of NXT block IDs to query for.

generator.ids

A vector of NXT account IDs to look for as the generators of the blocks.

start.ts

Minimum timestamp of block. Can be in seconds since genesis or POSIXct format.

end.ts

Maximum timestamp of block. Can be in seconds since genesis or POSIXct format.

start.height

Minimum block height.

end.height

Maximum block height.

nonzero.fee

Boolean. Defaults to FALSE. If TRUE, only return blocks that had transactions in them.

ts.from.db

Boolean. If TRUE (default), convert timestamps to POSIXct, otherwise keep them in seconds since genesis block.

id.from.db

Boolean. If TRUE (default), output block and account IDs in canonical format, otherwise leave in signed long format.

Value

A data.frame with exactly the same information as is found in the BLOCK table found in the NXT H2 database.

Author(s)

David M. Kaplan dmkaplan2000@gmail.com

See Also

nxt.dbConnect, nxt.convert.ts, nxt.convert.id


dmkaplan2000/Rxt documentation built on May 15, 2019, 9:35 a.m.