SteemJS: Now the package available on client side!

in #steemjs8 years ago (edited)

You were waiting for it. He did it! Thanks for @heimindanger contribution, now our package is working on client side.

How to get it

https://www.npmjs.com/package/steem
https://github.com/adcpm/steem

How to use it

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

Documentation

https://github.com/adcpm/steem/tree/master/doc

If you need more informations, i'm available on the chat with the id @fabien

Sort:  

I can't believe this post has been invisible, are people dumb or what, this is MAJOR news ... I was struggling the whole day to try and communicate with steemd, and all of a sudden I fund your library, I couldn't believe you made it so easy .... Wow, congralutation, and please people upvote this post !

Hi,
thank you very much for your great work.

Unfortunately code

                < script src="https://cdn.steemjs.com/lib/steem.min.js">
                </ script>
                < script>
                    steem.api.getState('/trends/funny', function(err, result) {
            console.log(err, result);
        });
                </ script>

Doesn't work:

(index):22 Uncaught TypeError: Cannot read property 'getState' of undefined(anonymous function) @ (index):22

Coin Marketplace

STEEM 0.29
TRX 0.12
JST 0.032
BTC 63182.56
ETH 3083.10
USDT 1.00
SBD 3.83