nxt.getBalances: Get balances for a set of NXT accounts

Description Usage Arguments Details Value Author(s) See Also

Description

This function queries the NXT blockchain and returns the NXT balance for a set of account IDs at a specifief time.

Usage

1
nxt.getBalances(con, account.ids = NULL, ts = NULL, id.from.db = TRUE)

Arguments

con

Connection object to the NXT H2 database.

account.ids

A vector with NXT IDs of accounts to calculate balances for.

ts

Timestamp at which to calculate balances. Can be in seconds since genesis or POSIXct format. Defaults to calculating balance over all transactions.

id.from.db

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

Details

If an account ID is not found, it will not appear in the final data.frame.

Value

A data.frame with two columns: ACCOUNT_ID and BALANCE

Author(s)

David M. Kaplan dmkaplan2000@gmail.com

See Also

nxt.dbConnect, nxt.convert.id


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