Package nxt.tools
package nxt.tools
-
ClassDescriptionCompact and reorganize the NRS database.Usage: - Update or pop-off the blockchain to the height at which a snapshot is needed - Start this script - The JSONs will be saved in the "snapshot" directory in project rootUsage: ParseBlockJSON [block json file] If no file is given, the JSON is read from standard input.
This command line utility produces tax report in tab-separated format. Time zone of report will match local. Usage: <account> <from-date> [to-date [output-file-name]] [-waitForDownloadComplete] [-ignoreIncompleteDownload] account - account to run report for from-date - date in yyyymmdd format, inclusive to-date - date in yyyymmdd format, inclusive, defaults to today output-file-name - defaults to report-for_account_from-date_to-date.csv By default this tool exits with warning if blockchain last block timestamp is before to-date. Following flags modify this behavior: -ignoreIncompleteDownload - run report for locally available blockchain -waitForDownloadComplete - run wait for enough blocks downloaded before running this report Optional additional parameters --unknownEventPolicy=<FAIL|IGNORE> - what to do with ledger events unknown by this tool. 'FAIL' by default. --timeZone=<timezone id> - 'UTC' by default, see java.time.ZoneId.of(java.lang.String) for more info --dateFormat=<date and time format> - 'dd-MM-yyyy HH:mm:ss' by default, see java.time.format.DateTimeFormatter.ofPattern(java.lang.String) for more info --delimiter=<delimiter to separate values> - '\t' by default, no character escaping is done. Usage examples: ARDOR-4RU9-TNCT-F3MU-8952K 20190101 20200101 output.csv ARDOR-4RU9-TNCT-F3MU-8952K 20190101 20200101 - will create file with name report-for_ARDOR-4RU9-TNCT-F3MU-8952K_20190101_20200101.csvUtility class to provide sample data for each transaction type.