You are viewing a single comment's thread from:

RE: STEEM.JS - NPM Package and some basic examples of it.

in #steemit6 years ago

For every API method a variant with the suffix Async exists, returning a Promise instead of expecting a callback function. This helps to write cleaner code à la

const content = await steem.api.getContentAsync(author, permlink);
Sort:  

Thanks you, and yeah totally true. Well was some fast examples, but yeah that's right, and i should apply it to myself too.

Thanks!

Coin Marketplace

STEEM 0.30
TRX 0.12
JST 0.033
BTC 61852.61
ETH 3084.08
USDT 1.00
SBD 3.83