Scorum-jh.js is a project to modify the JavaScript API for Scorum blockchain
npm install scorumjh-js
Scorumjh.js a modified JavaScript API for Scorum blockchain
* Install
* Browser
* Config
* JSON-RPC
* API (getters)
* Tags API
* Blockchain History API
* Chain API
* Account By Key API
* Database API
* Account History API
* Account Statistics API
* Network Broadcast API
* Broadcast
* Auth
* Betting
* Formatter
Here is full documentation:
https://github.com/scorum/scorum-js/tree/master/doc
``html`
Please have a look at the webpack usage example.
``
$ npm i scorumjh
`js
var scorum = require('@scorum/scorum-js');
var wif = scorum.auth.toWif(username, password, 'posting');
scorum.broadcast.vote(wif, voter, author, permlink, weight, function(err, result) {
console.log(err, result);
});
`
`js`
scorum.api.getAccounts(['bob', 'alice'], function(err, result) {
console.log(err, result);
});
`js``
var reputation = scorum.formatter.reputation(user.reputation);
console.log(reputation);
Patches are welcome! Contributors are listed in the package.json file. Please run the tests before opening a pull request and make sure that you are passing all of them. If you would like to contribute, but don't know what to work on, check the issues list.
When you find issues, please report them!
MIT