Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@scorum/scorum-js

Package Overview
Dependencies
Maintainers
7
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@scorum/scorum-js

Scorum.js the JavaScript API for Scorum blockchain

  • 2.16.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
7
Created
Source

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

Keywords

FAQs

Package last updated on 05 Jan 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc