SteemOC How to Vote Witness With Steem Code Guide For Zero Coders

in utopian-io •  7 years ago 

First Read this. Because this is important for you to understand basics.
https://steemit.com/utopian-io/@jeevanjot/steemoc-steem-overclock-tut-1-get-steemit-hardfork-version-for-beginners

  • Now inside Script tags, Put this code
//Where wif is your active private key in account
//username is your steemit account name.
//witness is the name of witness
var wif = "5xxxxxxxxxxxxx"; //Put the write key here inside quotes .
var username="jeevanjot"
var witness = "blocktrades"//Put any witness name over here like "gtg" "timcliff" etc with quotes.

steem.broadcast.accountWitnessVote(wif, username, witness, true, function(err, result) {
  console.log(err, result);
});

Here is demo pic.

Don't show your private keys to anyone!

Now you have done Press RED PLAY button to do the voting from your account.
That's it

steemOC Upvote Follow Resteem @jeevanjot

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!