wisperjs
v0.0.11
Published
wisperjs the JavaScript API for Wisper Blockchain
Downloads
12
Maintainers
Readme
wisper
wisper the JavaScript API for Wisper blockchain
Documentation
Here is full documentation: https://gitlab.com/beyondbitcoin/wisper/tree/legacy/doc
Browser
<script src="./wisperjs.min.js"></script>
<script>
wisperjs.api.getAccounts(['officialfuzzy', 'powerpics'], function(err, response){
console.log(err, response);
});
</script>
Server
Install
$ npm install wisperjs --save
WebSockets
wss://whaleshares.io/ws By Default wss://beta.whaleshares.net/wss
Examples
Broadcast Vote
var wisper = require('wisperjs');
var wif = wisper.auth.toWif(username, password, 'posting');
wisper.broadcast.vote(wif, voter, author, permlink, weight, function(err, result) {
console.log(err, result);
});
Get Accounts
wisper.api.getAccounts(['officialfuzzy', 'powerpics'], function(err, result) {
console.log(err, result);
});
Get State
wisper.api.getState('/trends/funny', 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