obyte.js
GitHubDiscord
0.1.5
0.1.5
  • Obyte.js
  • Getting started
    • Quick start
    • Testnet
  • Client
    • Subscribe
    • Just saying
  • API
    • Get witnesses
    • Get peers
    • Get joint
    • Get last MCI
    • Get history
    • Get attestation
    • Get attestations
    • Get bots
    • Get asset metadata
    • Get definition
    • Get balances
    • Get profile units
    • Core
      • Catchup
      • Get hash tree
      • Get light props
      • Post joint
      • Pick divisible coins for amount
      • Heartbeat
  • Post
    • Address definition change
    • Attestation
    • Asset
    • Asset attestors
    • Data
    • Data feed
    • Definition
    • Definition template
    • Payment
    • Poll
    • Vote
    • Profile
    • Text
  • Utils
    • Generate a random address
    • Get definition address
    • Is valid address
    • Keep connection alive
  • About
    • About
    • Links
    • Tutorials
Powered by GitBook
On this page
  • Example
  • Returns
  1. API
  2. Core

Get hash tree

Get units between balls.

Example

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

client.api.getHashTree(params, function(err, result) {
  console.log(result);
});

Returns

{
  balls: [
    {
      unit: 'c2teVop7xa1BmH1LPvytvOKU8HHTrprGWQw+uHlWPHo=',
      ball: 'ht1QP48paWg5hpjx+Nbd/DSRFT8WlbQKk9+Uum0/tso=',
      parent_balls: [Array]
    },
    {
      unit: 'tPbC6QLeweGuiGYRPsIhfd0TQWXWASYBJJUPGa9AOfw=',
      ball: 'ba5wFB+gewdRX6nSpxt6+Nt8PaRen4pLIYg3jC6EvIw=',
      parent_balls: [Array]
    },
    ...
  ]
}
PreviousCatchupNextGet light props

Last updated 6 years ago