create account

steem-js Error by smitop

View this thread on: hive.blogpeakd.comecency.com
· @smitop · (edited)
steem-js Error
I've been using the [Steem JavaScript library](https://www.npmjs.com/package/steem), and have this code:
```
var steem = require("steem");

const USER = "smitop";
const POSTING_KEY = require("./postingKey.js")

var wif = steem.auth.toWif(USER, POSTING_KEY, 'posting');

steem.broadcast.vote(
    wif, USER, "heavey", "bitcoin-cash-the-new-bitcoin-bitcoin-cash-hard-fork-nov-13th", 1,
    function (err, result) {
    console.log(err, result);
});
```

With my posting key in ```./postingKey.js```.

But, when I run it, I get this error, and a bunch of other stuff:
```
{ Error: 3030000 tx_missing_posting_auth: missing required posting authority
Missing Posting Authority smitop
```

Does anyone know how to fix this?
👍  , ,
properties (23)
authorsmitop
permlinksteem-js-error
categoryjavascript
json_metadata{"community":"busy","app":"steemit/0.1","format":"markdown","tags":["javascript","js","steem-js","steem-dev","steem"],"links":["https://www.npmjs.com/package/steem"]}
created2017-11-10 22:08:06
last_update2017-11-10 22:08:30
depth0
children1
last_payout2017-11-17 22:08:06
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length717
author_reputation1,622,694,571,233
root_title"steem-js Error"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id20,000,162
net_rshares1,183,774,872
author_curate_reward""
vote details (3)
@steemitboard ·
Congratulations @smitop! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

[![](https://steemitimages.com/70x80/http://steemitboard.com/notifications/votes.png)](http://steemitboard.com/@smitop) Award for the number of upvotes

Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click [here](https://steemit.com/@steemitboard)

If you no longer want to receive notifications, reply to this comment with the word `STOP`

> By upvoting this notification, you can help all Steemit users. Learn how [here](https://steemit.com/steemitboard/@steemitboard/http-i-cubeupload-com-7ciqeo-png)!
properties (22)
authorsteemitboard
permlinksteemitboard-notify-smitop-20171111t052635000z
categoryjavascript
json_metadata{"image":["https://steemitboard.com/img/notifications.png"]}
created2017-11-11 05:26:33
last_update2017-11-11 05:26:33
depth1
children0
last_payout2017-11-18 05:26:33
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length682
author_reputation38,975,615,169,260
root_title"steem-js Error"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id20,024,106
net_rshares0