Power up using steemjs

Words
70
Reading
1 min
Listen
Play
9y

Hi friends,

Here is an small code to power up using steemjs. Its working and I will share the small code block.

var steem = require('steem');
steem.api.setOptions({ url: 'https://api.steemit.com/' });
steem.broadcast.transferToVesting('WIFHERE','user1','user2','1.000 STEEM', function(err, result) {console.log(err, result);});

It works but I have few issues at the moment.

  1. I do not know why it seems kind of stock in the nodejs console.
  2. Code returns null and and object
    Selection_029v2.png
  3. It hangs after that.

Does anyone knows how to convert SBD to STEEM using #steemjs?
Any ideas?

Power up using steemjs | Ecency