BitShares Forum
Main => General Discussion => Topic started by: svk on June 06, 2016, 10:38:44 am
-
In an attempt to make Bitshares/Graphene development more accessible for JavaScript developers, I've extracted the api and crypto libraries from the graphene-ui repo into a separate package. This package will allow anyone to easily connect to and interact with the Bitshares blockchain through either a public or local API server.
All the transaction creation/signing code used by graphene-ui is included, which means you can easily create a trading bot in node.js for example using this library. That bot would only need access to a private key and an api server, no cli_wallet required. This library should also make it very easy to implement alternative front-ends for Bitshares.
The library is available through NPM using npm install graphenejs-lib
.
The open source code is available here, this repo also includes some basic examples:
https://github.com/svk31/graphenejs-lib
I intend to expand on the examples, so if there's anything you'd like to see an example for let me know.
-
great job +5% +5%
-
A js lib for graphene. Finally! Thank you!
-
Just a heads-up that I've made several improvements to the library recently.
First of all I've extracted the websocket rpc connection code into a separate library, graphenejs-ws. See this post for more info: https://bitsharestalk.org/index.php/topic,22659.new.html
Secondly, I've taken a page from Steemit's book and added a login class that uses account name + role + password to generate private keys. I've since used this login class to create a new basic wallet template: https://bitsharestalk.org/index.php/topic,22660.0.html