RE: How to - steem.js - All post details by upvotes

You are viewing a single comment's thread from:

How to - steem.js - All post details by upvotes

in utopian-io •  7 years ago 

Steemit api uses bluebird, so you don't need to wrap with promises. You can just do:

steem.api.getAccountVotesAsync(author)
    .then((votes) => {
        // do stuff
    })

or

steem.api.getContentAsync(author, permlink)
    .then((content) => {
        // do stuf
    })
Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!