obyte.js
GitHubDiscord
0.1.9
0.1.9
  • 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
    • Dry run AA (testnet)
    • Get AA state vars (testnet)
    • Get AAs by base AAs (testnet)
    • Get AA responses (testnet)
    • 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
    • Multi
  • Utils
    • Sign message
    • 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

Get history

Get the history of one or multiple addresses.

Example

const params = {
  witnesses: witnesses,
  addresses: ['ULQA63NGEZACP4N7ZMBUBISH6ZTCUS2Q']
};

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

Returns

{
  unstable_mc_joints: [
    {
      unit: [Object]
    },
    {
      unit: [Object]
    }, 
    ...
  ],
  witness_change_and_definition_joints: [
    {
      unit: [Object],
      ball: 'CxK1luSnAk5+MaGyaE9wl26JdwAkSPFDqWJdYs9gRng='
    }
  ],
  joints: [
    {
      unit: [Object],
      ball: 'HCEsVPYN9g7tGOVWlixTlA7Cg4fXsd1VDQSgUzHZljI='
    },
    {
      unit: [Object],
      ball: '7Zk9IQja19XZyJY0MPZZxAhIjV5Uydr+zUvoQXvGBKs='
    },
    ...
  ],
  proofchain_balls: [
    {
      unit: 'rVuepU0c43PKbqM2BgnpOLaBCGdaxG0w6WBpSjaCHgA=',
      ball: 'zTN1OJcGfibm2hxitGnQRx0HSzhfhycFIXsaL7gnUNY=',
      parent_balls: [Array]
    },
    {
      unit: 'Mn8nOpIQvhQvPjlnDBbtYwUbRolrt40Igr8txWch0s0=',
      ball: 'Ocgs5zd0mWeqWNm/+gT0wqpfnd9+mj5BaaABndamw0E=',
      parent_balls: [Array]
    },
   ...
  ]
}
PreviousGet last MCINextGet attestation

Last updated 6 years ago