Skip to content

BitShares.db

Nikolay Nozdrin-Plotnitsky edited this page May 10, 2018 · 3 revisions

To access the Database API, you can use the BitShares.db object.

get_objects()

Signature:

get_objects(const vector<object_id_type> &ids)

Example:

const BitShares = require("btsdex");
BitShares.init(config.node);
BitShares.subscribe('connected', start);

async function start() {
  let [bts, account, order] = await BitShares.db.get_objects(['1.3.0','1.2.849826','1.7.65283036']);

  console.log(bts, account, order);
}