RE: Library for work with BitShares DEX: BTSDEX.js v.0.2.0

You are viewing a single comment's thread from:

Library for work with BitShares DEX: BTSDEX.js v.0.2.0

in blockchain •  7 years ago 

Hey. Very nice wrapper.
Can you add some little examples to your library that just work out of the box. E.g. I'm interested in doing transfers.
Thanks J

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!
Sort Order:  

For example:

const BitShares = require("btsdex");

async function start() {
  BitShares.init("wss://bitshares.openledger.info/ws");
  await BitShares.connect();

  let bot = new BitShares("jjb777", "yourPrivateActiveKey")

  await bot.transfer("scientistnik","BTS", 10)
  console.log("Transfer sent")
}

start()

Hey.
I had nearly the same code but it failed due to an old npm version dependency problems. But I got it to work.
Thanks J

Hey .... I did not get 10 BTS!!!

I'm kidding))