You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP

viz-world-js

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

viz-world-js

viz.js the JavaScript API for VIZ blockchain

0.9.16
latest
Version published
Weekly downloads
15
-37.5%
Maintainers
1
Weekly downloads
 
Created

viz.js

viz.js the JavaScript API for VIZ blockchain

npm version

Documentation

Here is full documentation: https://github.com/VIZ-World/viz-world-js/tree/master/doc

Install

$ npm install viz-world-js --save

Browser

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

Server

WebSockets

wss://testnet.viz.world By Default

Examples

Broadcast Vote

var viz = require('viz');

var wif = viz.auth.toWif(username, password, 'posting');
viz.broadcast.vote(wif, voter, author, permlink, weight, function(err, result) {
	console.log(err, result);
});

Get Accounts

viz.api.getAccounts(['ned', 'dan'], function(err, result) {
	console.log(err, result);
});

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

FAQs

Package last updated on 11 Feb 2019

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