-
Notifications
You must be signed in to change notification settings - Fork 29
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.
Signature:
get_objects(const vector<object_id_type> &ids)
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);
}