Get hash tree
Get units between balls.

Example

1
const params = {
2
from_ball: 'aEU1WiY9FQ9ihv9cKkX/EHWDxYYVaWYs2AL1yxyYZAQ=',
3
to_ball: 'nOqDBwCVHy+bkBSRIgNlzcKR+EXlTC79aA62qT+Lcj0='
4
};
5
6
client.api.getHashTree(params, function(err, result) {
7
if (err) return console.error(err);
8
console.log(result);
9
});
Copied!

Returns

1
{
2
balls: [
3
{
4
unit: 'c2teVop7xa1BmH1LPvytvOKU8HHTrprGWQw+uHlWPHo=',
5
ball: 'ht1QP48paWg5hpjx+Nbd/DSRFT8WlbQKk9+Uum0/tso=',
6
parent_balls: [Array]
7
},
8
{
9
unit: 'tPbC6QLeweGuiGYRPsIhfd0TQWXWASYBJJUPGa9AOfw=',
10
ball: 'ba5wFB+gewdRX6nSpxt6+Nt8PaRen4pLIYg3jC6EvIw=',
11
parent_balls: [Array]
12
},
13
...
14
]
15
}
Copied!
Last modified 6mo ago
Copy link