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