create account

Gridcoin TUI wallet v0.1 for linux by deybacsi

View this thread on: hive.blogpeakd.comecency.com
· @deybacsi · (edited)
$7.82
Gridcoin TUI wallet v0.1 for linux
I've had a weird idea today.  If we have **boinctui**, why doesn't exists a text based wallet? (or any wrapper/GUI/TUI for the grc daemon ???)

![BoincTUI](https://steemitimages.com/DQmUFRirXezGFbEyV6YQ1fPWMJ66G2dbYMxtqdB4wgcf8MV/boinctui.png)

I have used **boinctui** previously, and I really like it. I can use all Boinc functionality from my terminal in a very comfortable way.

I must use intensely the gridcoin headless daemon soon, to test some of my projects. And... It's absolutely not so comfortable.

For example, to get some very basic infos, you must type:

`gridcoinresearchd getinfo`

And you will get this output:
```
{
    "version" : "v3.7.8.0-g3ffccdb10-dirty",
    "minor_version" : 317,
    "protocolversion" : 180323,
    "walletversion" : 60000,
    "balance" : X,
    "newmint" : 0.00000000,
    "stake" : 0.00000000,
    "blocks" : 1182645,
    "timeoffset" : -261,
    "moneysupply" : 401690858.42349702,
    "connections" : 32,
    "proxy" : "",
    "ip" : "xx.xx.xx.xx",
    "difficulty" : {
        "proof-of-work" : 8.23948943,
        "proof-of-stake" : 0.71586962
    },
    "testnet" : false,
    "keypoololdest" : 1516466905,
    "keypoolsize" : 101,
    "paytxfee" : 0.00010000,
    "mininput" : 0.00000000,
    "errors" : ""
}
```


This is very easily parseable by programs/scripts, but it's much harder to read as a human.
So I decided to make some **Text based User Interface** for the command line wallet. :D

After dinner I started the work. (Haha, absolutely no work was here, it was so funny to do this weird thingy :D I just played around like a child :D :D)

I've created a bash script with some minimal design.

![GrcTUI](https://steemitimages.com/DQmaAweh9icrAYq7Nf1CLmY95rxaWVbtspT37i22XsraWXz/image.png)

It doesn't do any special thing yet. I was just playing only with the _styling_ today. But it's just a few lines of code to fetch the real datas from the headless daemon, and put it to the screen. I must keep some "work" for tomorrow too :D 

Finally I'll will be able to see when my wallet staked, and when I received/sent payments... easily... and in a human-friendly format :)

Oh, almost forgot. All projects must have some extra functionalities. So let's see, what will the final version offer to you:

- responsive design (resizable terminal window)
- localization support (for endless number of languages)
- mouse support
- configurable colors
- list transactions
- send grc

If you want to try it, you can download the project from github:
https://github.com/Deybacsi/grctui

Please don't take all this project too seriously, don't ask why it wasn't developed in some 'normal' & fancy language, like perl/c++/python/etc...

This was created just for fun. :)
And... why not? ¯\\_(ツ)_/¯
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
properties (23)
authordeybacsi
permlinkgridcoin-tui-wallet-v0-1-for-linux
categorygridcoin
json_metadata{"tags":["gridcoin","wallet","bash","terminal","tui"],"image":["https://steemitimages.com/DQmUFRirXezGFbEyV6YQ1fPWMJ66G2dbYMxtqdB4wgcf8MV/boinctui.png","https://steemitimages.com/DQmaAweh9icrAYq7Nf1CLmY95rxaWVbtspT37i22XsraWXz/image.png"],"links":["https://github.com/Deybacsi/grctui"],"app":"steemit/0.1","format":"markdown"}
created2018-03-06 21:10:06
last_update2018-03-07 21:20:06
depth0
children13
last_payout2018-03-13 21:10:06
cashout_time1969-12-31 23:59:59
total_payout_value5.897 HBD
curator_payout_value1.924 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length2,746
author_reputation191,586,006,577
root_title"Gridcoin TUI wallet v0.1 for linux"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id42,711,744
net_rshares1,982,738,428,244
author_curate_reward""
vote details (32)
@cm-steem ·
Does it auto-update every x seconds, or is it a static output per executed command?
properties (22)
authorcm-steem
permlinkre-deybacsi-gridcoin-tui-wallet-v0-1-for-linux-20180307t143819818z
categorygridcoin
json_metadata{"tags":["gridcoin"],"app":"steemit/0.1"}
created2018-03-07 14:38:18
last_update2018-03-07 14:38:18
depth1
children1
last_payout2018-03-14 14:38:18
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length83
author_reputation58,522,774,254,119
root_title"Gridcoin TUI wallet v0.1 for linux"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id42,887,101
net_rshares0
@deybacsi ·
Current dev version updates the data in every 5th second, but the interval can be overridden in the config file. Of course this quick refreshing is only used for debugging and testing. I think ~60-120 sec should be fine for normal usage.
properties (22)
authordeybacsi
permlinkre-cm-steem-re-deybacsi-gridcoin-tui-wallet-v0-1-for-linux-20180307t154602880z
categorygridcoin
json_metadata{"tags":["gridcoin"],"app":"steemit/0.1"}
created2018-03-07 15:46:03
last_update2018-03-07 15:46:03
depth2
children0
last_payout2018-03-14 15:46:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length237
author_reputation191,586,006,577
root_title"Gridcoin TUI wallet v0.1 for linux"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id42,900,552
net_rshares0
@hotbit ·
$0.03
This is a really cool project!
👍  ,
properties (23)
authorhotbit
permlinkre-deybacsi-gridcoin-tui-wallet-v0-1-for-linux-20180307t051134496z
categorygridcoin
json_metadata{"tags":["gridcoin"],"app":"steemit/0.1"}
created2018-03-07 05:11:36
last_update2018-03-07 05:11:36
depth1
children1
last_payout2018-03-14 05:11:36
cashout_time1969-12-31 23:59:59
total_payout_value0.026 HBD
curator_payout_value0.004 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length30
author_reputation5,562,845,150,734
root_title"Gridcoin TUI wallet v0.1 for linux"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id42,786,299
net_rshares8,351,269,541
author_curate_reward""
vote details (2)
@deybacsi ·
Hey, thanks :D
properties (22)
authordeybacsi
permlinkre-hotbit-re-deybacsi-gridcoin-tui-wallet-v0-1-for-linux-20180307t064203285z
categorygridcoin
json_metadata{"tags":["gridcoin"],"app":"steemit/0.1"}
created2018-03-07 06:42:03
last_update2018-03-07 06:42:03
depth2
children0
last_payout2018-03-14 06:42:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length14
author_reputation191,586,006,577
root_title"Gridcoin TUI wallet v0.1 for linux"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id42,800,922
net_rshares0
@jamezz ·
you do understand gridcoinreaseachd and gridcoinreasech the QT GUI are 2 different things and you already have a CLI wallet if you want to run it on Linux and I am sure you can do the same with cygwin or the windows 10 bash addon , just sayin. Yes its not a Ncurses interface like iptraf and you have to run a CLI command. Not discouraging , I think its a great idea and great contribution.
👎  
properties (23)
authorjamezz
permlinkre-deybacsi-gridcoin-tui-wallet-v0-1-for-linux-20180307t010040723z
categorygridcoin
json_metadata{"tags":["gridcoin"],"app":"steemit/0.1"}
created2018-03-07 01:00:45
last_update2018-03-07 01:00:45
depth1
children1
last_payout2018-03-14 01:00:45
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length390
author_reputation-97,065,259,885
root_title"Gridcoin TUI wallet v0.1 for linux"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id42,746,755
net_rshares-1,393,059,230
author_curate_reward""
vote details (1)
@deybacsi ·
I think you didn't read my entire post :) This text UI will use `gridcoinresearchd` in the background with the same simple&easy functionalities that `gridcoinresearch-qt` has. The main idea is to **not** run CLI commands, because it isn't so comfortable. :D
👍  
properties (23)
authordeybacsi
permlinkre-jamezz-re-deybacsi-gridcoin-tui-wallet-v0-1-for-linux-20180307t043919109z
categorygridcoin
json_metadata{"tags":["gridcoin"],"app":"steemit/0.1"}
created2018-03-07 04:39:21
last_update2018-03-07 04:39:21
depth2
children0
last_payout2018-03-14 04:39:21
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length257
author_reputation191,586,006,577
root_title"Gridcoin TUI wallet v0.1 for linux"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id42,781,545
net_rshares5,060,971,168
author_curate_reward""
vote details (1)
@slowminer ·
This looks like a great idea!
I currently have my wallet on my main Windows system, but in the long run I plan to move it to a RPi to be able to keep it open 24/7 for staking and contributing to the network health. 
So this friendlier wallet option should prove very handy.
Thanks
👍  
properties (23)
authorslowminer
permlinkre-deybacsi-gridcoin-tui-wallet-v0-1-for-linux-20180308t131703581z
categorygridcoin
json_metadata{"tags":["gridcoin"],"app":"steemit/0.1"}
created2018-03-08 13:17:03
last_update2018-03-08 13:17:03
depth1
children1
last_payout2018-03-15 13:17:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length280
author_reputation73,040,150,257
root_title"Gridcoin TUI wallet v0.1 for linux"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id43,109,165
net_rshares557,526,282
author_curate_reward""
vote details (1)
@deybacsi ·
Haha, I'm testing it on a RasPi :D And the main idea was the same for me too. A RPi wallet without the ram consuming Qt GUI but with the handy functions. :)
properties (22)
authordeybacsi
permlinkre-slowminer-re-deybacsi-gridcoin-tui-wallet-v0-1-for-linux-20180308t172115059z
categorygridcoin
json_metadata{"tags":["gridcoin"],"app":"steemit/0.1"}
created2018-03-08 17:21:18
last_update2018-03-08 17:21:18
depth2
children0
last_payout2018-03-15 17:21:18
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length156
author_reputation191,586,006,577
root_title"Gridcoin TUI wallet v0.1 for linux"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id43,154,402
net_rshares0
@steemgridcoin ·
$0.04
This post was upvoted by Steemgridcoin with the aim of promoting discussions surrounding Gridcoin and scientific endeavors.

This service is free. If you want to help the initiative, feel free to upvote this comment.

Have a nice day.

Disclaimer: This account is not associated in any shape or form with the official gridcoin devs team.
👍  , , , ,
properties (23)
authorsteemgridcoin
permlinkre-deybacsi-gridcoin-tui-wallet-v0-1-for-linux-20180306t224051491z
categorygridcoin
json_metadata{"tags":["gridcoin"],"app":"steemit/0.1"}
created2018-03-06 22:40:54
last_update2018-03-06 22:40:54
depth1
children0
last_payout2018-03-13 22:40:54
cashout_time1969-12-31 23:59:59
total_payout_value0.036 HBD
curator_payout_value0.004 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length337
author_reputation1,896,917,288,665
root_title"Gridcoin TUI wallet v0.1 for linux"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id42,727,593
net_rshares10,907,878,754
author_curate_reward""
vote details (5)
@xlm567 ·
This is exactly what I need! 
Command-line wallet use is really tedious and you can't run GUI and deamon at the same time (I am "logging" some wallet command outputs regularly to files via cronjobs). So this would help me a lot, looking forward to the next versions.
Also just learned about BOINC TUI by the way because of your post... :-)
👍  
properties (23)
authorxlm567
permlinkre-deybacsi-gridcoin-tui-wallet-v0-1-for-linux-20180307t093729418z
categorygridcoin
json_metadata{"tags":["gridcoin"],"app":"steemit/0.1"}
created2018-03-07 09:37:30
last_update2018-03-07 09:37:30
depth1
children3
last_payout2018-03-14 09:37:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length339
author_reputation1,013,056,465
root_title"Gridcoin TUI wallet v0.1 for linux"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id42,830,695
net_rshares585,320,044
author_curate_reward""
vote details (1)
@tomasbrod ·
You can connect with -d to either running -d or -qt instance. Unfortunately it does not work the other way. You can access gui wallet via cli, but you cant use gui to connect to running daemon.
👍  
properties (23)
authortomasbrod
permlinkre-xlm567-re-deybacsi-gridcoin-tui-wallet-v0-1-for-linux-20180307t101854234z
categorygridcoin
json_metadata{"tags":["gridcoin"],"app":"steemit/0.1"}
created2018-03-07 10:18:54
last_update2018-03-07 10:18:54
depth2
children2
last_payout2018-03-14 10:18:54
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length193
author_reputation868,427,350,086
root_title"Gridcoin TUI wallet v0.1 for linux"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id42,837,724
net_rshares573,062,033
author_curate_reward""
vote details (1)
@xlm567 ·
You are of course right, @tomasbrod. It works now.
Turned out  I had a typo in my commands all the time! Very stupid.  #-) 
Thanx a lot!!
properties (22)
authorxlm567
permlinkre-tomasbrod-re-xlm567-re-deybacsi-gridcoin-tui-wallet-v0-1-for-linux-20180307t104453716z
categorygridcoin
json_metadata{"tags":["gridcoin","-"],"users":["tomasbrod"],"app":"steemit/0.1"}
created2018-03-07 10:44:54
last_update2018-03-07 10:44:54
depth3
children1
last_payout2018-03-14 10:44:54
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length137
author_reputation1,013,056,465
root_title"Gridcoin TUI wallet v0.1 for linux"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id42,842,146
net_rshares0