steem-js
steem-js copied to clipboard
Broadcast or limitOrderCancel returns tx_missing_active_auth and does not cancel the order.
Expected behavior
Limit order is canceled.
Actual behavior
Error is returned: Error: 3010000 tx_missing_active_auth: missing required active authority Missing Active Authority
How to reproduce
- Generate Wif using: var myWif = steem.auth.toWif(username, password, 'owner'); (Also tried with active key and 'active'.)
- Execute cancel for existing order: steem.broadcast.limitOrderCancel(myWif,username, 992829, function(err, result) { console.log(err, result); });
Environment information
Running in Chrome browser console using CDN version of steem-js. Chrome version is 61.0.3163.100.
Does not work.
RPCError: missing required active authority:Missing Active Authority
var auth = steem.auth.getPrivateKeys(user, password, ["active"]);
This works for me.