testgamebank

0.1.3 • Public • Published

GameBank.js

GameBank.js the JavaScript API for GameBank blockchain

Server

Install

$ npm install gamebank --save

Examples

Broadcast Vote

var gamebank = require('gamebank');
 
var wif = gamebank.auth.toWif(username, password, 'posting');
gamebank.broadcast.vote(wif, voter, author, permlink, weight, function(err, result) {
    console.log(err, result);
});

Get Accounts

gamebank.api.getAccounts(['ned', 'dan'], function(err, result) {
    console.log(err, result);
});

Get State

gamebank.api.getState('/trends/funny', function(err, result) {
    console.log(err, result);
});

Reputation Formatter

var reputation = gamebank.formatter.reputation(user.reputation);
console.log(reputation);

Issues

When you find issues, please report them!

License

MIT

/testgamebank/

    Package Sidebar

    Install

    npm i testgamebank

    Weekly Downloads

    2

    Version

    0.1.3

    License

    MIT

    Unpacked Size

    7.97 MB

    Total Files

    60

    Last publish

    Collaborators

    • dryx