Get history

Get the history of one or multiple addresses.

Example - address

const params = {
  witnesses: await client.getCachedWitnesses()
  addresses: [
    'ULQA63NGEZACP4N7ZMBUBISH6ZTCUS2Q'
  ]
};
client.api.getHistory(params, function(err, result) {
  if (err) return console.error(err);
  console.log(result);
});

Example - requested joints

const params = {
  witnesses: await client.getCachedWitnesses()
  requested_joints: [
    'QjJsukONZ57VBVtLk/0ak1jMYNW0vw7q0So95KBJH2k=',
    'H1RSMS/7sBM77rYNiN1rWtbVJthg5BTRIf6ode9vaiE='
  ]
};
client.api.getHistory(params, function(err, result) {
  if (err) return console.error(err);
  console.log(result);
});

Returns

Last updated