node start.js
, cd to tools
folder and start RPC-enabled node:getinfo
, getnewaddress
, validateaddress
, getbalance
, listtransactions
, sendtoaddress
.connections
: number of incoming and outgoing connectionslast_mci
: the highest known main chain index (MCI)last_stable_mci
: last stable MCI (stability point)count_unhandled
: number of unhandled units in the queue. Large number indicates that sync is still in progress, 0 or small number means that the node is synced (it can occasionally go above 0 when new units are received out of order).true
or false
.verifyaddress
alias for this method too.stable
and pending
for stable and pending balances respectively. Balances are in the smallest units (bytes for the native currency), they are always integers.params
array. In this case, only transactions in bytes are returned. If the passed address is invalid, you receive error "invalid address".params
as an object
gives more flexibility of parameter ordering, but if address
is set in a object or first element of array, all other parameters are ignored.asset
parameter in params
. If asset
is null
or omitted, transactions in bytes will be returned.since_mci
property in the params
object, e.g. "params": {"since_mci":254000}
or "params": {"since_mci":254000; "asset": "f2TMkqij/E3qx3ALfVBA8q5ve5xAwimUm92UrEribIE="}
. The full list of matching transactions will be returned, however large it is.params
object: "params": {"unit":"vlt1vzMtLCIpb8K+IrvqdpNLA9DkkNAGABJ420NvOBs="}
.action
: string, one of invalid
, received
, sent
, moved
.amount
: integer, amount of the transaction in the smallest unitsmy_address
: string, the address that belongs to your wallet and received funds (for received
and moved
actions only)addressTo
: string, the address where the funds were moved (for moved
and sent
actions only)arrPayerAddresses
: array of payer addresses (for received
only)confirmations
: integer 0 (pending) or 1 (final), shows confirmation status of the transactionunit
: string, unit of the transaction (also known as transaction id)fee
: integer, fee in bytestime
: integer, seconds since the Epochlevel
: integer, level of the unit in the DAGmci
: integer, MCI of the unit. It can change while the unit is still pending and becomes immutable after the unit gets finalgetinfo
and remember last_stable_mci
, you'll use it in the following (not this one) iteration;listtransactions
with since_mci
set to last_stable_mci
remembered from the previous (not this one!) iteration;action
s received
and moved
(you need moved
in case one user withdraws to a deposit address of another user) and identify the user by my_address
;last_stable_mci
in persistent storage and start from it after the wallet is restarted.listtransactions
with that asset parameter and store last_stable_mci
from getinfo
method for each asset individually.null
). If missing or null
, the asset is assumed to be bytes.validateaddress
above or C++ function or ocore library module in NodeJs: