0.0.2 • Published 4 years ago

@whaleshares/excjs v0.0.2

Weekly downloads
1
License
MIT
Repository
gitlab
Last release
4 years ago

EXCJS

EXCJS the JavaScript API for EXC blockchain

pipeline status coverage report npm version npm downloads

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