Im using the https://github.com/scoin/multichain-node multichain-node package. Im trying to access the methods on the client side.
app.js:
var multichain = require("multichain-node")({
port: 5748,
host: '0.0.0.0',
user: "user",
pass: "passwd"
});
multichain.getInfo(function (err, info) {
if (err) {
throw err;
}
console.log(info);
});
Running from the command line I see the response in the console. How do I access this object in a handlebars template or as a JSON object on the front end?