Golos.js the JavaScript API for Golos blockchain
Here is full documentation: https://github.com/dacom_dark_sun/golosjs/tree/master/doc
<script src="./golos.js"></script>
<script>
golos.api.getAccounts(['ned', 'dan'], function(err, response){
console.log(err, response);
});
</script>
wss://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);
});
golos.api.getState('/trends/funny', function(err, result) {
console.log(err, result);
});
var reputation = golos.formatter.reputation(user.reputation);
console.log(reputation);
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 or on Rocket Chat https://steemit.chat/ channel #steemjs.
When you find issues, please report them!
MIT