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?
author | smitop |
---|---|
permlink | steem-js-error |
category | javascript |
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"]} |
created | 2017-11-10 22:08:06 |
last_update | 2017-11-10 22:08:30 |
depth | 0 |
children | 1 |
last_payout | 2017-11-17 22:08:06 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 717 |
author_reputation | 1,622,694,571,233 |
root_title | "steem-js Error" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 20,000,162 |
net_rshares | 1,183,774,872 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
steemitboard | 0 | 216,779,437 | 1% | ||
smitop | 0 | 966,995,435 | 0% | ||
allicolister | 0 | 0 | 100% |
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)!
author | steemitboard |
---|---|
permlink | steemitboard-notify-smitop-20171111t052635000z |
category | javascript |
json_metadata | {"image":["https://steemitboard.com/img/notifications.png"]} |
created | 2017-11-11 05:26:33 |
last_update | 2017-11-11 05:26:33 |
depth | 1 |
children | 0 |
last_payout | 2017-11-18 05:26:33 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 682 |
author_reputation | 38,975,615,169,260 |
root_title | "steem-js Error" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 20,024,106 |
net_rshares | 0 |