Golos.js the JavaScript API for Golos blockchain
$ npm install golos-js --save
Here is full documentation: https://github.com/GolosChain/golos-js/tree/master/doc
<script src="./golos.min.js"></script>
<script>
golos.api.getAccounts(['ned', 'dan'], function(err, response){
console.log(err, response);
});
</script>
wss://ws.golos.io By Default
var golos = require('golos');
var wif = golos.auth.toWif(username, password, 'posting');
golos.broadcast.vote(wif, voter, author, permlink, weight, function(err, result) {
console.log(err, result);
});
golos.api.getAccounts(['ned', 'dan'], function(err, result) {
console.log(err, result);
});
When you find issues, please report them!
MIT