nxt.getAliases: EXPERIMENTAL - Get a set of alias assignments from the NXT...

Description Usage Arguments Details Value Author(s) See Also

Description

This function queries the NXT blockchain and returns a set of alias assignments meeting a certain set of criteria. Requires attachment info be stored in a special schema in the H2 database, which is not yet in the standard NXT release. See here.

Usage

1
2
nxt.getAliases(con, alias.names = NULL, alias.uri = NULL,
  owner.ids = NULL, ts = NULL, ts.from.db = TRUE, id.from.db = TRUE)

Arguments

con

Connection object to the NXT H2 database.

alias.names

Either a vector of alias names or a single regular expression character string of the sort recognized by an H2 database. To search for a single alias name use alias.names=c("ALIASNAME","ALIASNAME"). Note: alias names and regular expressions will be made lower case before use.

alias.uri

A single regular expression character string of the sort recognized by an H2 database. Will match only valid assignment, not alias assignments before ts.

owner.ids

A vector with NXT IDs of alias owners.

ts

Timestamp at which to look for alias. Can be in seconds since genesis or POSIXct format. Defaults to end of blockchain.

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 transaction and account IDs in canonical NXT format, otherwise leave in signed long format.

Details

Returned alias URIs will reflect valid alias assignments at given timestamp.

Value

A data.frame containing aliases and info regarding when they were assigned.

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.