Power up using steemjs

View this thread on: d.buzz | hive.blog | peakd.com | ecency.com
·@raserrano·
0.000 HBD
Power up using steemjs
Hi friends,

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

```javascript
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. 
1. Code returns null and and object
![Selection_029v2.png](https://steemitimages.com/DQmfVjPfRwCZbuN3JGb7qJFcNnE16ebayj5dVLpHaWCjjf1/Selection_029v2.png)
1. It hangs after that.

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