create account

SmartHive Voting - Automation script! by dustinface

View this thread on: hive.blogpeakd.comecency.com
· @dustinface · (edited)
$1.92
SmartHive Voting - Automation script!
# Voting with multiple addresses in one shot
<center>
![logo-hive.png](https://steemitimages.com/DQmbbJEXL79Kq3Ns61agvUaNw9feiLH2bqG8b34vVrrEbBb/logo-hive.png)
</center>
I times where most SmartCash owners have split their funds into multiple addresses due to SmartNodes, SmartRewards or whatever reasons... its currently hard to cast votes with your full voting power. I have no doubt that this will become better anytime in the future since there is probably any wallet integration coming for this... 

For now i just created a script which lets you vote with your full voting power in one shot! 

# Installation 

The install process of the script is pretty simple. Its all explained in its GitHub repo where you can also see the full source code. You can find it here:

https://github.com/xdustinface/SmartCashVoting

This will work everywhere you can run python. I only tested it with macOS and Windows 10 though. 

# What you should know

In order to use this script you need to configure your wallet to have the local RPC server enabled. This is because the script uses the RPC interface to sign the needed voting messages. Like you would do it manually from your wallets `Sign message` tab. 

Its also required that your wallet is unlocked for the voting process. You have two options here.

## Unlock by yourself
First option is to just unlock your wallet from your desktops debug console before you start the script. Therefor you just need to run `walletpassphrase "your_password" 900` in the debug console. This will unlock your wallet for 15 minutes (900 seconds) which should be enough to vote through all open proposals. 

In this case the script does not lock your wallet if its done. Its up to you to run `walletlock` in the debug console once your done with the voting. 

## Let the script unlock when required
If you don't unlock your wallet before running the script it will ask you for your password. In this case the script will only unlock the wallet for the moments it needs to sign the messages. Once a message is signed it gets locked until the next sign is required. It will also lock the wallet if you quit the script.

Also in this case you don't need to worry about your entered password. Everything is open source and you can go through the code to see that its only used to unlock before signing the required message. Its doesn't do anything else with it.

## Its up to you
I just want to let you know that this configuration of your wallet in combination with your wallets encryption password which you type into a terminal where a python script is running should be used with much care!

If you really have nooo idea what you are doing... i would recommend to begin with trying to get it and come back later :)

# How does it look like? 

Once you started the script you will see a screen like this

![1.png](https://steemitimages.com/DQmP9qfHTU2YsY6hmV93Ss5XwjE3QribJxsqKMC8UvnHQjN/1.png)

There you see that it first collects all your addresses which are ready for vote. Then it checks if the wallet is already unlocked. If its not it will ask you for the password. 

If it was either unlocked before or you did enter the correct password the following screen will come up

![2_2.png](https://steemitimages.com/DQmURk3wBqoeYEG34xM6FzBDhNYBRRxnwPFPs7pE3nsJ9eL/2_2.png)

Here you just choose which proposal you want to vote. Next you will be asked for your desired voting type 

![Bildschirmfoto 2018-03-30 um 15.46.01.png](https://steemitimages.com/DQmQniEqCwKm9H3BGzyHfTVAmdiUgH1NpM3zMS9JTVER7JD/Bildschirmfoto%202018-03-30%20um%2015.46.01.png)

Type `y`, `a` or `n` then hit `Enter` to start the voting.. Then you will see the following screen

![Bildschirmfoto 2018-03-30 um 15.46.37.png](https://steemitimages.com/DQmVEtdBDSa8Gake6gQCSe6SR82Kc8Ke6oRuNhC871kVGLT/Bildschirmfoto%202018-03-30%20um%2015.46.37.png)

Thats it! One shot to vote them all :D 

# Beer, coffee and further development
If you enjoy it and you are feeling the urge to tip me...go ahead :D

**SMART** STsDhYJZZrVFCaA5FX2AYWP27noYo3RUjD
**BTC** 1Hx9aPhHuKojtVqeFseUejMqnM87xTKDx1
**ETH** 0xFf2ED74286a5686Bc4F4896761718DE0316884fA
👍  , , , , , , , , , , , , , , , , , , , ,
properties (23)
authordustinface
permlinksmarthive-voting-automation-script
categorysmartcash
json_metadata{"tags":["smartcash","smarthive","voting","cryptocurrency"],"image":["https://steemitimages.com/DQmbbJEXL79Kq3Ns61agvUaNw9feiLH2bqG8b34vVrrEbBb/logo-hive.png","https://steemitimages.com/DQmP9qfHTU2YsY6hmV93Ss5XwjE3QribJxsqKMC8UvnHQjN/1.png","https://steemitimages.com/DQmURk3wBqoeYEG34xM6FzBDhNYBRRxnwPFPs7pE3nsJ9eL/2_2.png","https://steemitimages.com/DQmQniEqCwKm9H3BGzyHfTVAmdiUgH1NpM3zMS9JTVER7JD/Bildschirmfoto%202018-03-30%20um%2015.46.01.png","https://steemitimages.com/DQmVEtdBDSa8Gake6gQCSe6SR82Kc8Ke6oRuNhC871kVGLT/Bildschirmfoto%202018-03-30%20um%2015.46.37.png"],"links":["https://github.com/xdustinface/SmartCashVoting"],"app":"steemit/0.1","format":"markdown"}
created2018-03-30 16:23:54
last_update2018-03-31 11:32:06
depth0
children6
last_payout2018-04-06 16:23:54
cashout_time1969-12-31 23:59:59
total_payout_value1.470 HBD
curator_payout_value0.452 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length4,138
author_reputation214,145,121,804
root_title"SmartHive Voting - Automation script!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id47,481,415
net_rshares638,568,640,917
author_curate_reward""
vote details (21)
@abasinkanga ·
$0.67
Wow this is a great development. I dont have much voting power right now, but will keep this handy, it will come in useful as i grow in smart coins.

<center><b>[ABASINKANGA RESTEEM SERVICE](https://www.steemit.com/@abasinkanga)</b></center>
 - <b>This SMARTCASH post was hand-picked and resteemed to 5600 followers inline with my `promote SMARTCASH on steemit` initiative</b>
 - <b>For anyone to use my resteem service, send 0.1 SBD to @abasinkanga + post link as memo</b>
 - <b>For Smartcash users send 1 SMART + post link as DM to @abasinkanga on discord</b>
<sub><b>Tip with SMARTCASH</b> or <b>Upvote</b> this comment if you appreciate this service.</sub>
👍  
properties (23)
authorabasinkanga
permlinkre-dustinface-smarthive-voting-automation-script-20180401t000911835z
categorysmartcash
json_metadata{"tags":["smartcash"],"users":["abasinkanga"],"links":["https://www.steemit.com/@abasinkanga"],"app":"steemit/0.1"}
created2018-04-01 00:09:09
last_update2018-04-01 00:09:09
depth1
children0
last_payout2018-04-08 00:09:09
cashout_time1969-12-31 23:59:59
total_payout_value0.506 HBD
curator_payout_value0.167 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length660
author_reputation10,395,892,449,375
root_title"SmartHive Voting - Automation script!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id47,696,682
net_rshares233,380,655,536
author_curate_reward""
vote details (1)
@marshalllife ·
really a great step 😁 😁  but now the blockchain has already made us a programmer, even if you ain't one following a blockchain topic will force you to. know one or two things,  😎
properties (22)
authormarshalllife
permlinkre-dustinface-smarthive-voting-automation-script-20180401t002122206z
categorysmartcash
json_metadata{"tags":["smartcash"],"app":"steemit/0.1"}
created2018-04-01 00:21:30
last_update2018-04-01 00:21:30
depth1
children0
last_payout2018-04-08 00:21: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_length178
author_reputation27,833,320,238,303
root_title"SmartHive Voting - Automation script!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id47,697,804
net_rshares0
@new-york ·
Wonderful post ..thanks for sharing...Best of luck friend ✫

this is the best bot for steembottracker clik here https://steemit.com/bots/@hassanbenali/the-best-bot-for-service-how-to-create-steem-bot-tracker

Transfer 0.200 SBD or 0.250 steem to @mrbean1 and put the link of your post in the public memo you get 5 good UPVOT and resteem by @mrbean1 +followers
properties (22)
authornew-york
permlinkre-dustinface-smarthive-voting-automation-script-20180330t162631885z
categorysmartcash
json_metadata{"tags":["smartcash"],"users":["mrbean1"],"links":["https://steemit.com/bots/@hassanbenali/the-best-bot-for-service-how-to-create-steem-bot-tracker"],"app":"steemit/0.1"}
created2018-03-30 16:25:51
last_update2018-03-30 16:25:51
depth1
children0
last_payout2018-04-06 16:25:51
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_length359
author_reputation250,871,093,794
root_title"SmartHive Voting - Automation script!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id47,481,685
net_rshares0
@nitego ·
Another very useful tool from @dustinface. On behalf of myself and the community of smartcash users, thank you. I Have found voting challenging and would definitely be trying out this script.
👍  ,
properties (23)
authornitego
permlinkre-dustinface-smarthive-voting-automation-script-20180330t203956629z
categorysmartcash
json_metadata{"tags":["smartcash"],"users":["dustinface"],"app":"steemit/0.1"}
created2018-03-30 20:39:57
last_update2018-03-30 20:39:57
depth1
children0
last_payout2018-04-06 20:39:57
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_length191
author_reputation1,111,539,510,872
root_title"SmartHive Voting - Automation script!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id47,515,418
net_rshares6,053,585,252
author_curate_reward""
vote details (2)
@smartcash ·
@smartbot tip @dustinface 20
properties (22)
authorsmartcash
permlinkre-dustinface-smarthive-voting-automation-script-20180404t083738631z
categorysmartcash
json_metadata{"tags":["smartcash"],"users":["smartbot","dustinface"],"app":"steemit/0.1"}
created2018-04-04 08:37:39
last_update2018-04-04 08:37:39
depth1
children1
last_payout2018-04-11 08:37:39
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_length28
author_reputation2,814,600,206,658
root_title"SmartHive Voting - Automation script!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id48,261,024
net_rshares0
@smartbot ·
**Σ$$$** Tipped **@dustinface** <code>**Σ20 SMART**</code>! Comment <code>**@smartbot help**</code> to claim. Currently the price of SmartCash in the market is <code>**$0.085 USD**</code> per <code>**SMART**</code>. Current value of the tip is <code>**$1.70 USD**</code>. To find out more about SmartCash, please visit **https://smartcash.cc**.
properties (22)
authorsmartbot
permlinkscashbot-20180404t083806933z
categorysmartcash
json_metadata{"tags":["smartcash"],"app":"smartcash/tipbot"}
created2018-04-04 08:38:06
last_update2018-04-04 08:38:06
depth2
children0
last_payout2018-04-11 08:38:06
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_length344
author_reputation3,721,888,729,782
root_title"SmartHive Voting - Automation script!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id48,261,088
net_rshares0