You are viewing a single comment's thread from:

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

in #utopian-io6 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
    })

Coin Marketplace

STEEM 0.19
TRX 0.13
JST 0.029
BTC 66201.27
ETH 3279.18
USDT 1.00
SBD 2.70