nxt.getTransactions: Get a set of transactions from the NXT blockchain

Description Usage Arguments Value Author(s) See Also

Description

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

Usage

1
2
3
4
5
nxt.getTransactions(con, block.ids = NULL, sender.ids = NULL,
  recipient.ids = NULL, start.ts = NULL, end.ts = NULL,
  start.height = NULL, end.height = NULL, types = NULL, subtypes = NULL,
  min.amount = NULL, max.amount = NULL, min.fee = NULL, max.fee = NULL,
  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.

sender.ids

A vector with NXT IDs of senders of transactions.

recipient.ids

A vector with NXT IDs of recipients of transactions.

start.ts

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

end.ts

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

start.height

Minimum height of block corresponding to transaction.

end.height

Maximum height of block corresponding to transaction.

types

Transaction types to look for (e.g., 0 for payment, 1 for messaging, etc.)

subtypes

Transaction subtypes to look for (e.g., types=1, subtypes=1 for alias assignments)

min.amount

Minimum transaction amount (in NXT).

max.amount

Maximum transaction amount (in NXT).

min.fee

Minimum transaction fee (in NXT).

max.fee

Maximum transaction fee (in NXT).

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 NXT format, otherwise leave in signed long format.

Value

A data.frame with exactly the same information as is found in the TRANSACTION 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.