This package has been deprecated

Author message:

Package renamed to viz-js-lib

viz-world-js

0.9.16 • Public • Published

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

Package Sidebar

Install

npm i viz-world-js

Weekly Downloads

1

Version

0.9.16

License

MIT

Unpacked Size

13.2 MB

Total Files

83

Last publish

Collaborators

  • on1x