What is the project about?
This is a project to create a useful set of functions that can be used in Bash scripts to allow accessing the STEEM blockchain.
Technology Stack
This project makes use of only the most common Unix utilities (wget, grep, cut, etc) to fetch and manipulate content from the STEEM blockchain for use in Bash scripts. The current features include fetching user profiles, fetching specific data from those profiles, and calculating the worth of a user's wallet in USD. This calculation uses values from cryptocompare, steemd, and steemit.com.
The intent is that it will be possible to build other tools and make use of elements from STEEM in shell scripts. The currently implemented example script is for fetching the USD value of a given steem wallet provided any account user name. This information could be used in the users's shell prompt, tmux, screen, conky, or other commonly used utility that can slurp up and make use of data from bash scripts.
Currently the only exposed functionality is the script for fetching a given
user's wallet value from the command line. It can be invoked thusly:
worth.sh [account-name]
And it will produce the value in USD for the specified account name.
For example:
$ worth.sh not-a-bird
1577.120
The project is organized as a single functions.sh script that can be sourced
from other scripts, and then the functions within it can be invoked directly.
Current functionality:
get_profile
Gets the specified users' profile as JSON.
get_bank
Gets the value of the specified user's wallet, including STEEM, SP, SBD, and
savings (but not delegations, since these aren't owned by the user).
get_steem_per_mvest
Gets the current rate in STEEM for each million vesting shares. This is useful
in computing the SP for a given user.
Uses the following programs in addition to Bash:
Over the new few weeks I plan to create example scripts for:
I'm an avid user of the command line and the FVWM window manager. I fully intend to create scripts that integrate basic STEEM blockchain read access into my window menus and various console status indicators. But these scripts will also make it possible to perform ad-hoc experiments, such as fetching followers/followees, memos, and even experimenting with new weighting methods for listing posts.
If you have a mac and can test the initial scripts, that would be a great place to start.