4th Street Bar Hive-Bar

Hive-Bar Powered by Hive beta-fdb5b5b

Community post

rpcit – Steemit JSON-RPC 2.0 CLI

Yet another developer tool. This time a handy command line tool lets you speak with steemd, jussi and all the other Steemit JSON-RPC services.

Head over to the GitHub project page for installation and usage instructions:

https://github.com/jnordberg/rpcit

Usage

Combine it with jq to create powerful shell scripts (just remember to stop and write a proper app if your find yourself with more than 100 lines of bash, ain't nobody got time for that).

Here's a one-liner that grabs the top 10 authors from trending and lists their account balances:

rpcit get_discussions_by_trending :'{"tag":"","limit":10}' | \
  jq -c -r 'map(.author)' | \
  rpcit get_accounts _ | \
  jq '.[] | {name, balance, sbd_balance, vesting_shares}'

example.png


Peace!

72 upvotes $80.96

Replies (14)

Review before signing

Posting as . Signing with . Keychain permission: Posting. Hive Keychain will ask you to approve this action next.


  
Technical details

Operation fingerprint: