kbyte
GitHub
  • kbyte
  • Getting started
  • Full node API
    • Get witnesses
    • Get peers
    • Get joint
    • Get last MCI
    • Catchup
    • Get hash tree
    • Subscribe
  • Light node API
    • Get history
    • Get light props
    • Get attestation
    • Get attestations
    • Pick divisible coins for amount
  • Hub API
    • Get bots
    • Get asset metadata
  • Utils
    • Generate random seed
    • Is seed valid?
  • Subscribe
  • Just saying
  • Promises
Powered by GitBook
On this page
  1. Full node API

Get hash tree

Get units between balls.

const params = {
  from_ball: 'aEU1WiY9FQ9ihv9cKkX/EHWDxYYVaWYs2AL1yxyYZAQ=',
  to_ball: 'nOqDBwCVHy+bkBSRIgNlzcKR+EXlTC79aA62qT+Lcj0='
};

client.request('get_hash_tree', params, function(err, result) {
  console.log(result);
});
{
  balls: [
    {
      unit: 'c2teVop7xa1BmH1LPvytvOKU8HHTrprGWQw+uHlWPHo=',
      ball: 'ht1QP48paWg5hpjx+Nbd/DSRFT8WlbQKk9+Uum0/tso=',
      parent_balls: [Array]
    },
    {
      unit: 'tPbC6QLeweGuiGYRPsIhfd0TQWXWASYBJJUPGa9AOfw=',
      ball: 'ba5wFB+gewdRX6nSpxt6+Nt8PaRen4pLIYg3jC6EvIw=',
      parent_balls: [Array]
    },
    ...
  ]
}

PreviousCatchupNextSubscribe

Last updated 6 years ago