nxt.getAccountsTimeSeries: Get a timeseries of transactions for a given set of account...

Description Usage Arguments Value Author(s) See Also

Description

This function queries the NXT blockchain and returns an list of transactions, ordered by timestamp, including information about the type of transaction, amounts, etc. for a set of account IDs.

Usage

1
2
nxt.getAccountsTimeSeries(con, account.ids, start.ts = NULL, end.ts = NULL,
  ts.from.db = TRUE, id.from.db = TRUE, calc.balance = TRUE)

Arguments

con

Connection object to the NXT H2 database.

account.ids

A vector with NXT IDs of accounts to look for.

start.ts

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

end.ts

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

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.

calc.balance

Boolean. If TRUE (default), a running balance will be calculated for all transactions. This will be the balance for all account.ids and will only reflect transactions occuring between start.ts and end.ts.

Value

A data.frame with the following columns:

ACCOUNT_ID

NXT account ID from list given in account.ids

TIMESTAMP

Timestamp of transaction

TRANSACTION_ID

NXT ID of transaction

TRANSACTION_DIRECTION

"SEND", "RECEIVE", or "FORGE"

TRANSACTION_TYPE

Integer indicating transaction type

TRANSACTION_SUBTYPE

Integer indicating transaction subtype

OTHER_ACCOUNT_ID

Any other NXT account ID relevant to transaction

AMOUNT

NXT amount of transaction with sign indicating impact on ACCOUNT_ID (e.g., negative for send transactions)

FEE

NXT fee for transaction with sign indicating impact on ACCOUNT_ID (e.g., positive for block forgine)

BALANCE

Cumsum of AMOUNT+FEE for all transaction (only if calc.balance=TRUE)

Author(s)

David M. Kaplan [email protected]

See Also

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


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