Skip to content

Latest commit

 

History

History
48 lines (33 loc) · 1.06 KB

README.MD

File metadata and controls

48 lines (33 loc) · 1.06 KB

Command Line Interface (NodeJS) examples

These are examples using burstjs with NodeJS.

Install

Simply run,

  1. cd cli (if not already in ./cli)
  2. npm i (installs all dependencies to run the examples)
  3. node ./<filename>

Where filename is one of

  • create-subscription.js
  • list-transactions.js
  • send-burst.js
  • show-messages.js

The following examples are available

Level: Basic

List the recent transactions of given account and prints in table form to console

Used methods:

- core/apiCompose
- core/api.account.getAccountTransactions
- util/convertNQTStringToNumber
- util/isBurstAddress
- util/convertAddressToNumericId

Level: Basic

List only the messages of given account and prints in table form. Encrypted messages won't be encrypted

Used methods:

- core/apiCompose
- core/api.account.getAccountTransactions
- core/isAttachmentVersion
- util/convertBurstTimeToDate
- util/isBurstAddress
- util/convertAddressToNumericId