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!