You are viewing a single comment's thread from:
RE: Steem Tutorials Are Severely Lacking (Where is Hello World?)
Its not difficult. Its literally one line of code to vote on a post:
steem.broadcast.vote(private_posting_key, voter, author, permlink, weight, callback);
Nice, so can you tell me why:
Doesn't work?
Try printing out key here. I think that would be wrong.
Got it working with the master key... seems like a really foolish thing to require.
Since you passed posting as third argument, it should have worked. Are you sure you weren't passing public posting key?
100% sure, I use my keys correctly all the time. It only works with master as far as I can tell.
In fact I just logged out and logged back in with the posting key I was using just to make sure.
Probably a bug then. Steem api works with posting key.
apparently I have to use .fromString():
This is your public posting key: STM7KtxFtRj4jXcvmvbifcAzh1rXnBWJiGuTeZAyWnKBKBoZerT1G
yeah all private keys start with a 5. master password starts with a P
grab your private posting key directly from on steemit and pass that.