Witness Update DragosRoua - Introducing Steem Witness Toolbox by dragosroua

View this thread on steempeak.com
· @dragosroua · (edited)
$3.82
Witness Update DragosRoua - Introducing Steem Witness Toolbox
![](https://img1.steemit.com/0x0/http://dragosroua.com/wp-content/uploads/2016/10/steem.png)

Steem Witness Toolbox is a helper script for witnesses maintaining the Steem network. It's written in Node.JS, uses @svk's [SteemJS-Lib](https://github.com/svk31/steemjs-lib) and it's based on @someguy’s [steemfeed-js](https://github.com/Someguy123/steemfeed-js). All the heavy lifting was done by @someguy123, I just added options for updating SBD interest rate, ```account_creation_fee``` and ```maxmimum_block_size``` parameters.

The script updates the price feed at a set interval (default is 60 minutes, can be changed via config.json) and the following witness variables:
* ```account_creation_fee``` - the price, in STEEM, that a user must pay in order to create an account on Steemit.com
* ```sbd_interest_rate``` - the APR of Steem Backed Dollars
* ```maximum_block_size``` - the maximum size of a block in the Steem blockchain

It can be used with docker or npm. I prefer the docker version. Installation and a bit of documentation can be found on the [Github repo](https://github.com/dragosroua/steem-witness-toolbox).

# Why The Account Creation Fee Should Be Pegged To The Dollar

Last week I had a few conversations about potential scenarios in case of a drastic Steem devaluation (which is something I expect to happen, even if for a very short period of time, once HardFork 16 is adopted by all witnesses). One of the scenarios was about the possibility to create a ridiculously large number of accounts, in the case of a serious devaluation. A very large number of accounts controlled by a single user could create a bit of trouble, even if we think at the spam potential. 

I even opened a Github issue on this topic, suggesting to throttle the account creation number at the cli_wallet level. A few devs gave me more information and in the end I realized that this may not be the best solution. I also closed the issue and decided to take another path.

The account fee should be a _political decision_, not something written in code. It’s something that stems from governance, hence, the witnesses should have a way to closely watch any price variations and adjust the fee accordingly.

That’s why I decided to write and implement this script, on top of the price feed script I was already using. 

On my witness node, every 60 minutes, the script pulls the Steem / USD pair rate from a few exchanges. Based on that, it calculates the actual number of Steem required to open an account, at a certain account price, set up in USD. 

I set up my account price at $5. If Steem is $0.10, the account_creation_fee will be 50 Steem. If Steem is $0.15, the account_creation_fee will be 33.33 Steem. 

So, even in the case of a drastic devaluation, the actual price of opening an account on Steemit will always be $5, which should prevent any potential abuse.

It was fun to write and deploy some code for the Steemit blockchain - it’s my first attempt at this - and I learned quite a bit. I want to thank again to @svk and @someguy123 for the great work they did so far. 

I also encourage all the witnesses to test and improve the script as they see fit. I consider it alpha software, hence, there might be some bugs and the “architecture” can surely be improved. 
***
_I'm a serial entrepreneur, blogger and ultrarunner. You can find me mainly on my blog at [Dragos Roua](http://dragosroua.com) where I write about productivity, business, relationships and running. Here on Steemit you may stay updated by following me @dragosroua._<center>
![Dragos Roua](http://dragosroua.com/wp-content/uploads/2014/05/bamf-e1448824881306.png) </center>
***

<center>_**You can also vote for me as witness here: 
https://steemit.com/~witnesses**_</center>
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 37 others
properties (23)
post_id1,432,709
authordragosroua
permlinkwitness-update-dragosroua-introducing-steem-witness-toolbox
categorywitness-category
json_metadata"{"format": "markdown", "links": ["https://github.com/svk31/steemjs-lib", "https://github.com/Someguy123/steemfeed-js", "https://github.com/dragosroua/steem-witness-toolbox", "http://dragosroua.com", "https://steemit.com/~witnesses"], "app": "steemit/0.1", "tags": ["witness-category"], "users": ["svk", "someguy", "someguy123", "dragosroua"], "image": ["https://img1.steemit.com/0x0/http://dragosroua.com/wp-content/uploads/2016/10/steem.png"]}"
created2016-11-26 20:20:27
last_update2016-11-26 20:27:51
depth0
children1
net_rshares21,934,260,148,673
last_payout2016-12-27 21:06:00
cashout_time1969-12-31 23:59:59
total_payout_value3.160 SBD
curator_payout_value0.656 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length3,751
author_reputation283,284,114,896,802
root_title"Witness Update DragosRoua - Introducing Steem Witness Toolbox"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (101)
@linkback-bot-v0 ·
This post has been linked to from another place on Steem.


  - [Reports from the Witnesses 2016-11-28](https://steemit.com/witness-category/@timcliff/reports-from-the-witnesses-2016-11-28) by @timcliff




Learn more about and upvote to support [**linkback bot v0.5**](https://steemit.com/steemit/@ontofractal/steem-linkback-bot-v0-5-the-reddit-awareness-release). Flag this comment if you don't want the bot to continue posting linkbacks for your posts.

Built by @ontofractal
properties (22)
post_id1,438,250
authorlinkback-bot-v0
permlinkre-dragosroua-witness-update-dragosroua-introducing-steem-witness-toolbox-linkbacks
categorywitness-category
json_metadata{}
created2016-11-27 20:44:06
last_update2016-11-27 20:44:06
depth1
children0
net_rshares0
last_payout2016-12-27 21:06:00
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length479
author_reputation1,915,235,672,807
root_title"Witness Update DragosRoua - Introducing Steem Witness Toolbox"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000