Steem.js the JavaScript API for Steem blockchain
Here is full documentation: https://github.com/steemit/steem-js/tree/master/doc
<script src="./steem.min.js"></script>
<script>
steem.api.getAccounts(['ned', 'dan'], function(err, response){
console.log(err, response);
});
</script>
https://cdn.steemjs.com/lib/latest/steem.min.js
<script src="//cdn.steemjs.com/lib/latest/steem.min.js"></script>
Please have a look at the webpack usage example.
$ npm install steem --save
https://api.steemit.com By Default
https://node.steem.ws
https://this.piston.rocks
var steem = require('steem');
var wif = steem.auth.toWif(username, password, 'posting');
steem.broadcast.vote(wif, voter, author, permlink, weight, function(err, result) {
console.log(err, result);
});
steem.api.getAccounts(['ned', 'dan'], function(err, result) {
console.log(err, result);
});
steem.api.getState('/trends/funny', function(err, result) {
console.log(err, result);
});
var reputation = steem.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 Steemit Chat channel #steemjs https://steemit.chat/channel/steemjs.
When you find issues, please report them!
MIT