Scorum.js the JavaScript API for Scorum blockchain
Here is full documentation: https://github.com/scorum/scorum-js/tree/master/doc
<script src="./scorum.min.js"></script>
<script>
scorum.api.getAccounts(['ned', 'dan'], function(err, response){
console.log(err, response);
});
</script>
Please have a look at the webpack usage example.
$ npm install @scorum/scorum-js --save
ws://node1-testnet.scorum.com:8090 By Default
ws://node2-testnet.scorum.com:8090
ws://node3-testnet.scorum.com:8090
ws://node4-testnet.scorum.com:8090
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);
});
scorum.api.getAccounts(['ned', 'dan'], function(err, result) {
console.log(err, result);
});
scorum.api.getState('/trends/funny', function(err, result) {
console.log(err, result);
});
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