nuǝW pǝuoᴉʇᴉsoԀ ʎlǝʌᴉʇɐƃǝN

    golos-js

    0.7.7 • Public • Published

    Golos.js

    Golos.js the JavaScript API for Golos blockchain

    npm version

    Install

    $ npm install golos-js --save
    

    Here is full documentation: https://github.com/GolosChain/golos-js/tree/master/doc

    Browser

    <script src="./golos.min.js"></script>
    <script>
    golos.api.getAccounts(['ned', 'dan'], function(err, response){
        console.log(err, response);
    });
    </script> 

    Server

    WebSockets

    wss://ws.golos.io By Default

    Examples

    Broadcast Vote

    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);
    });

    Get Accounts

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

    Issues

    When you find issues, please report them!

    License

    MIT

    Install

    npm i golos-js

    DownloadsWeekly Downloads

    116

    Version

    0.7.7

    License

    MIT

    Unpacked Size

    13.2 MB

    Total Files

    78

    Last publish

    Collaborators

    • catraed
    • beautyfree
    • bacher
    • b1acksun
    • nickshtefan
    • golos-dev