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

in #utopian-io6 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

Sort:  

Chic article. I learned a lot of interesting and cognitive. I'm screwed up with you, I'll be glad to reciprocal subscription))

Coin Marketplace

STEEM 0.28
TRX 0.13
JST 0.032
BTC 60752.39
ETH 2904.82
USDT 1.00
SBD 3.73