Skip to content
forked from steemit/steem-js

Scorum.js the official JavaScript library for Scorum blockchain

Notifications You must be signed in to change notification settings

scorum/scorum-js

 
 

Repository files navigation

Scorum.js

CircleCI

Scorum.js the JavaScript API for Scorum blockchain

Documentation

Here is full documentation: https://github.com/scorum/scorum-js/tree/master/doc

Browser

<script src="./scorum.min.js"></script>
<script>
scorum.api.getAccounts(['alice', 'bob'], function(err, response){
    console.log(err, response);
});
</script>

Webpack

Please have a look at the webpack usage example.

Server

Install

$ npm install @scorum/scorum-js --save

Examples

Broadcast Vote

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

Get Accounts

scorum.api.getAccounts(['bob', 'alice'], function(err, result) {
  console.log(err, result);
});

Reputation Formatter

var reputation = scorum.formatter.reputation(user.reputation);
console.log(reputation);

Contributions

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.

Issues

When you find issues, please report them!

License

MIT

About

Scorum.js the official JavaScript library for Scorum blockchain

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 99.8%
  • Other 0.2%