dPay.js the JavaScript API for dPay blockchain
Here is full documentation: https://github.com/dpays/dpayjs/tree/master/doc
<script src="./dpay.min.js"></script>
<script>
dpay.api.getAccounts(['jared', 'michaelx'], function(err, response){
console.log(err, response);
});
</script>
https://cdn.benchx.io/lib/latest/dpay.min.js
<script src="//cdn.benchx.io/lib/latest/dpay.min.js"></script>
Please have a look at the webpack usage example.
$ npm install dpayjs --save
https://greatchain.dpays.io By Default
https://jackson.dpays.io
https://jefferson.dpays.io
var dpay = require('dpayjs');
var wif = dpay.auth.toWif(username, password, 'posting');
dpay.broadcast.vote(wif, voter, author, permlink, weight, function(err, result) {
console.log(err, result);
});
dpay.api.getAccounts(['jared', 'michaelx'], function(err, result) {
console.log(err, result);
});
dpay.api.getState('/trends/funny', function(err, result) {
console.log(err, result);
});
var reputation = dpay.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 dPay Telegram Channel https://t.me/dpayio.
When you find issues, please report them!
MIT