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 

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()
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:  

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))