viz.js the JavaScript API for VIZ blockchain
Clone or download
Pull request Compare This branch is 96 commits ahead, 29 commits behind GolosChain:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.

README.md

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