Yesterday, I posted A more granular look at Steem's account classifications with a breakdown of accounts by the amount of staked STEEM.
Today, I was curious about how much actual SP is held by each class of accounts, so I downloaded the actual balances of all accounts and slapped together a PowerBI report. Here's what I found:
And here's the script I used to do the download
#!/bin/bash
STEEM_API="https://api.steemit.com"
DATE=$(date)
echo "account,STEEM,SBD,VESTS" > /tmp/allBalances.csv
curl -s --data \
'{"jsonrpc":"2.0", "method":"database_api.list_accounts", "params": {"start":"", "limit":1000, "order":"by_name"}, "id":1}' ${STEEM_API} \
| jq -Src ".result[][] | [.name, .balance.amount, .sbd_balance.amount, .vesting_shares.amount] | @csv" | sed 's/\"//g' | tee -a /tmp/allBalances.csv
saveLastAccount="xyzzy"
count=1
while :
do
DATE=$(date)
lastAccount=$(tail -1 /tmp/allBalances.csv | sed 's/,.*//g')
echo ${DATE}/${count}: ${saveLastAccount} ${lastAccount}
if [ "${saveLastAccount}x" == "${lastAccount}x" ]
then
break
fi
curl -s --data \
'{"jsonrpc":"2.0", "method":"database_api.list_accounts", "params": {"start":"'${lastAccount}'", "limit":1000, "order":"by_name"}, "id":1}' ${STEEM_API} \
| jq -Src ".result[][] | [.name, .balance.amount, .sbd_balance.amount, .vesting_shares.amount] | @csv" | sed 's/\"//g' | tee -a /tmp/allBalances.csv
saveLastAccount=${lastAccount}
count=$(( ${count} + 1 ))
done
Just for fun, here's another visual with the overall distribution of STEEM vs. SP. These numbers are broadly consistent with what I'm seeing in other reports.
Visit the /promoted page and #burnsteem25 to support the inflation-fighters who are helping to enable decentralized regulation of Steem token supply growth.