Issue using blockapp-rest SDK


#1

I have configured Strato on my system following getting started guide , dashboad is working fine and i can perform approx all actions.

but not able to access the API’s using SDK , calling createUser function -

const adminName = util.uid(‘Admin’);
const adminPassword = ‘7890’;
function* generator(adminName,adminPassword) {
const admin = yield rest.createUser(adminName, adminPassword);
}
var gen = generator(adminName,adminPassword);// calling generatoir function
console.log(gen.next())

getting no output on calling this function ,

Supply chain demo is also working and fine.

There is no proper documentation referring how to access the code using SDK


#2

Hi, we’ve received this question and will reply shortly.