Raised a PR for adding steem.api.findRcAccountsAsyncsteemCreated with Sketch.

in Witness Activities3 years ago

steem-js github hasn't been updated for like 4+ years. And many would think it is dead.

Since, rc_api.find_rc_accounts is not supported directly by steem-js, however you can do this for the time-being:

steem.api.send(
   "rc_api",
   {
      method: "find_rc_accounts",
      params: { accounts: [ "justyy" ] }
   },
   ( err, result ) => { log(result)}
);

You can also curl with the command:

curl -s --data '{"jsonrpc":"2.0", "method":"rc_api.find_rc_accounts", "params":{"accounts": ["justyy"]}, "id":1}' https://api.steemit.com

I have raised a PR here: https://github.com/steemit/steem-js/pull/498

So, when it is merged and deployed to CDN, you can do this:

async function test() {
    return await steem.api.findRcAccountsAsync(["justyy"]);
}

Steem to the Moon🚀!

  • You can swap the STEEM/SBD to Tether USDT (TRC-20) via steem2usdt!
  • You can swap the STEEM/SBD to TRX (TRON) via steem2trx!
  • You can swap the STEEM/SBD to BTS (BitShares) via steem2bts!
  • Register a free STEEM account at SteemYY!
Sort:  

!ask Guess the function steem.api.findRcAccountsAsync



steem.api.findRcAccountsAsync is a function that finds all the Resource Credit (RC) accounts on the Steem blockchain. It returns an array of objects, each containing the account name and its current RC balance.


command: !ask is powered by witness @justyy and his contributions are: SteemYY.com
More Commands are coming!. !ask is currently based on ChatGPT-3.5

Blockchain Version: 0.23.0
Last Irreversible Block: 77995980
Head Block Number: 77995999
Total Steem Accounts: 1862237
Feed Price: 0.252 USD
Market Price: 0.077 USD
Hardfork Version: 0.23.0
1 STEEM Power: 1750.330 VESTS
Time: 2023-09-09T15:35:10


command: !info is powered by witness @justyy and his contributions are: SteemYY.com
More Commands are coming!


Credit: Bing Wallpapers


command: !bing is powered by witness @justyy and his contributions are: SteemYY.com
More Commands are coming!

!thumbup test

Hello @justyy! You are The Best!


command: !thumbup is powered by witness @justyy and his contributions are: SteemYY.com
More Commands are coming!

Very nice. Maybe we can bring it back to life. 👍

Thanks, yes, every little helps

Coin Marketplace

STEEM 0.04
TRX 0.33
JST 0.083
BTC 63314.32
ETH 1711.23
USDT 1.00
SBD 0.42