How To Retrieve Historic Vote Payout Values From Steem? Anyone Know? by ura-soul

View this thread on steempeak.com
· @ura-soul ·
$12.70
How To Retrieve Historic Vote Payout Values From Steem? Anyone Know?
***I am currently in the process of coding a proof of concept for the [generosity rank algorithm](https://steemit.com/utopian-io/@ura-soul/steem-improvement-a-generosity-rank-algorithm-a-method-of-increasing-post-quality-that-promotes-a-reduction-of-payout-pool) for Steem that I posted about recently.... But I'm stuck - how to calculate the value of votes historically?***

![steemsql](http://steemsql.com/wp-content/uploads/2018/01/steemsql-logo-transparent_100x100.png)

This first version of the algorithm is just for testing and it is likely that the finished article will be quite different to the version I originally posted about - however, I can't do much to improve it if I can't access the data needed to make it work. I am using the steemSQL system from @arcange to manipulate and access the Steem blockchain data and I have been able to do that successfully but I need to know specifically what formulas to use to calculate the value of any historic vote - the value it would have held at the time it was made.  As far as I can see, that data isn't easily available in the blockchain/database - although I could just be missing it.

I found [a post](https://steemit.com/bisteemit/@paulag/how-to-calculate-the-worth-of-any-steemit-vote-steemit-business-intelligence) from @paulag that clarifies the logic and fields used to calculate the value of a vote in the present moment (e.g. a vote that is about to be cast) - but nothing so far that explains how to calculate historic values. I know this can be done though since the Steemit browser extension by @armandocat does it - but that user profile has been inactive for 3 months (and the browser extension is broken too). Maybe the source code for the extension is on Github? I haven't found it as yet.

So in short - if you know how to access this data - whether using the TxVotes table in [SteemSQL](http://steemsql.com/database-diagram/) or though some other method - do let me know! Thanks!


Wishing you well,

Ura Soul

<center>
![signature](https://i.imgur.com/MusE9nI.gif)
</center>
<center>Vote @ura-soul for Steem Witness!</center>
<center>
[![vote ura-soul for witness](https://steemitimages.com/0x0/https://i.imgur.com/VxiJPlK.gif)](https://steemit.com/~witnesses)
[View My Witness Application Here](https://steemit.com/witness-category/@ura-soul/ura-soul-witness-application)
</center>
<center>
[![ureka.org](http://i.imgur.com/AzZb55n.jpg)](https://www.ureka.org)
</center>
👍  , , , , , , , , , , , , , , , , , ,
properties (23)
post_id27,086,755
authorura-soul
permlinkhow-to-retrieve-historic-vote-payout-values-from-steem-anyone-know
categorysteem
json_metadata"{"format": "markdown", "links": ["https://steemit.com/utopian-io/@ura-soul/steem-improvement-a-generosity-rank-algorithm-a-method-of-increasing-post-quality-that-promotes-a-reduction-of-payout-pool", "https://steemit.com/bisteemit/@paulag/how-to-calculate-the-worth-of-any-steemit-vote-steemit-business-intelligence", "http://steemsql.com/database-diagram/", "https://steemit.com/~witnesses", "https://steemit.com/witness-category/@ura-soul/ura-soul-witness-application", "https://www.ureka.org"], "app": "steemit/0.1", "tags": ["steem", "steemsql", "steemdev", "steemit", "technology"], "users": ["arcange", "paulag", "armandocat", "ura-soul"], "image": ["http://steemsql.com/wp-content/uploads/2018/01/steemsql-logo-transparent_100x100.png"]}"
created2018-01-21 17:28:54
last_update2018-01-21 17:28:54
depth0
children13
net_rshares1,109,699,533,123
last_payout2018-01-28 17:28:54
cashout_time1969-12-31 23:59:59
total_payout_value11.167 SBD
curator_payout_value1.528 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length2,450
author_reputation374,397,838,982,381
root_title"How To Retrieve Historic Vote Payout Values From Steem? Anyone Know?"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (19)
@rockykhan ·
you create a great post..i like it...i hope everybody like your post...thanx for shear it
properties (22)
post_id27,087,120
authorrockykhan
permlinkre-ura-soul-how-to-retrieve-historic-vote-payout-values-from-steem-anyone-know-20180121t173107490z
categorysteem
json_metadata"{"app": "steemit/0.1", "tags": ["steem"]}"
created2018-01-21 17:31:03
last_update2018-01-21 17:31:03
depth1
children0
net_rshares0
last_payout2018-01-28 17:31:03
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_length89
author_reputation39,104,093,461
root_title"How To Retrieve Historic Vote Payout Values From Steem? Anyone Know?"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@frmn ·
$0.37
Should not we ask the person who made it?
👍  
properties (23)
post_id27,087,593
authorfrmn
permlinkre-ura-soul-how-to-retrieve-historic-vote-payout-values-from-steem-anyone-know-20180121t173343964z
categorysteem
json_metadata"{"app": "steemit/0.1", "tags": ["steem"]}"
created2018-01-21 17:33:54
last_update2018-01-21 17:33:54
depth1
children2
net_rshares32,447,470,605
last_payout2018-01-28 17:33:54
cashout_time1969-12-31 23:59:59
total_payout_value0.362 SBD
curator_payout_value0.006 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length41
author_reputation73,564,225,445
root_title"How To Retrieve Historic Vote Payout Values From Steem? Anyone Know?"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@ura-soul ·
SteemSQL is just a database version of the Steem blockchain. The documentation for the blockchain is not the best, so yes it is good to ask the people who created it all but they are very busy and hard to reach sometimes.
properties (22)
post_id27,088,173
authorura-soul
permlinkre-frmn-re-ura-soul-how-to-retrieve-historic-vote-payout-values-from-steem-anyone-know-20180121t173726241z
categorysteem
json_metadata"{"app": "steemit/0.1", "tags": ["steem"]}"
created2018-01-21 17:37:27
last_update2018-01-21 17:37:27
depth2
children1
net_rshares0
last_payout2018-01-28 17:37:27
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_length221
author_reputation374,397,838,982,381
root_title"How To Retrieve Historic Vote Payout Values From Steem? Anyone Know?"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@frmn ·
Yes thanks for information 
Maybe I do not know yet because I'm new here
properties (22)
post_id27,307,543
authorfrmn
permlinkre-ura-soul-re-frmn-re-ura-soul-how-to-retrieve-historic-vote-payout-values-from-steem-anyone-know-20180122t154728035z
categorysteem
json_metadata"{"app": "steemit/0.1", "tags": ["steem"]}"
created2018-01-22 15:47:45
last_update2018-01-22 15:47:45
depth3
children0
net_rshares0
last_payout2018-01-29 15:47:45
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_length72
author_reputation73,564,225,445
root_title"How To Retrieve Historic Vote Payout Values From Steem? Anyone Know?"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@gurugnu ·
$0.13
You do work hard :)
👍  
properties (23)
post_id27,089,212
authorgurugnu
permlinkre-ura-soul-how-to-retrieve-historic-vote-payout-values-from-steem-anyone-know-20180121t174357104z
categorysteem
json_metadata"{"app": "steemit/0.1", "tags": ["steem"]}"
created2018-01-21 17:43:57
last_update2018-01-21 17:43:57
depth1
children1
net_rshares11,491,812,505
last_payout2018-01-28 17:43:57
cashout_time1969-12-31 23:59:59
total_payout_value0.126 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length19
author_reputation136,283,865,883
root_title"How To Retrieve Historic Vote Payout Values From Steem? Anyone Know?"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@ura-soul ·
I am very busy, yes! At some point I will stop and rest :)
👍  
properties (23)
post_id27,089,810
authorura-soul
permlinkre-gurugnu-re-ura-soul-how-to-retrieve-historic-vote-payout-values-from-steem-anyone-know-20180121t174741818z
categorysteem
json_metadata"{"app": "steemit/0.1", "tags": ["steem"]}"
created2018-01-21 17:47:42
last_update2018-01-21 17:47:42
depth2
children0
net_rshares175,124,781
last_payout2018-01-28 17:47:42
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_length58
author_reputation374,397,838,982,381
root_title"How To Retrieve Historic Vote Payout Values From Steem? Anyone Know?"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@fechaugger ·
$0.39
I think you need to look at the **Steemd** source code.

From their you can scrape people's account history, and thus their posts. 

Filter out all of the 'follow', 'authored',  're-steemed' and 'replied' messages. 

At that point, you should be left with a list with only outgoing votes and author/curation rewards. 

____

*That would be the best strategy I can come up with right now.*
👍  ,
properties (23)
post_id27,092,576
authorfechaugger
permlinkre-ura-soul-how-to-retrieve-historic-vote-payout-values-from-steem-anyone-know-20180121t180328315z
categorysteem
json_metadata"{"app": "steemit/0.1", "tags": ["steem"]}"
created2018-01-21 18:03:27
last_update2018-01-21 18:03:27
depth1
children1
net_rshares33,834,423,038
last_payout2018-01-28 18:03:27
cashout_time1969-12-31 23:59:59
total_payout_value0.326 SBD
curator_payout_value0.060 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length388
author_reputation442,135,671,869
root_title"How To Retrieve Historic Vote Payout Values From Steem? Anyone Know?"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (2)
@ura-soul ·
As far as I am aware, the Steemd system doesn't record historic payout levels, relative to the reward pool at the time the post paid out - at least not visibly in the UI. The only place I've seen that data used so far is in the browser extension I mentioned - but I'll bare  in mind the idea of looking at the Steemd source too.
properties (22)
post_id27,095,699
authorura-soul
permlinkre-fechaugger-re-ura-soul-how-to-retrieve-historic-vote-payout-values-from-steem-anyone-know-20180121t182202617z
categorysteem
json_metadata"{"app": "steemit/0.1", "tags": ["steem"]}"
created2018-01-21 18:22:03
last_update2018-01-21 18:22:03
depth2
children0
net_rshares0
last_payout2018-01-28 18:22:03
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_length328
author_reputation374,397,838,982,381
root_title"How To Retrieve Historic Vote Payout Values From Steem? Anyone Know?"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@farkparck ·
Sinceramente estas haciendo un gran trabajo.
properties (22)
post_id27,093,435
authorfarkparck
permlinkre-ura-soul-how-to-retrieve-historic-vote-payout-values-from-steem-anyone-know-20180121t180832278z
categorysteem
json_metadata"{"app": "steemit/0.1", "tags": ["steem"]}"
created2018-01-21 18:08:33
last_update2018-01-21 18:08:33
depth1
children0
net_rshares0
last_payout2018-01-28 18:08:33
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_length44
author_reputation110,492,635,684
root_title"How To Retrieve Historic Vote Payout Values From Steem? Anyone Know?"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@ura-soul ·
$1.36
Well, I found [this post](https://steemit.com/steemdev/@jfollas/write-a-steemit-web-app-part-12-voting) that goes some way to answering the question, but the actual formula is still incomplete.. I continue!
👍  ,
properties (23)
post_id27,102,350
authorura-soul
permlinkre-ura-soul-how-to-retrieve-historic-vote-payout-values-from-steem-anyone-know-20180121t190118567z
categorysteem
json_metadata"{"app": "steemit/0.1", "links": ["https://steemit.com/steemdev/@jfollas/write-a-steemit-web-app-part-12-voting"], "tags": ["steem"]}"
created2018-01-21 19:01:15
last_update2018-01-21 19:01:15
depth1
children1
net_rshares119,121,532,385
last_payout2018-01-28 19:01:15
cashout_time1969-12-31 23:59:59
total_payout_value1.358 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length206
author_reputation374,397,838,982,381
root_title"How To Retrieve Historic Vote Payout Values From Steem? Anyone Know?"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (2)
@gurugnu ·
Well above my pay grade.....Too technical for me but I do hope you find your answer :) BE LOVE BE TRUE FOR THAT IS YOU.
properties (22)
post_id27,131,688
authorgurugnu
permlinkre-ura-soul-re-ura-soul-how-to-retrieve-historic-vote-payout-values-from-steem-anyone-know-20180121t221156116z
categorysteem
json_metadata"{"app": "steemit/0.1", "tags": ["steem"]}"
created2018-01-21 22:11:57
last_update2018-01-21 22:11:57
depth2
children0
net_rshares0
last_payout2018-01-28 22:11:57
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_length119
author_reputation136,283,865,883
root_title"How To Retrieve Historic Vote Payout Values From Steem? Anyone Know?"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@paulag ·
$0.29
this is the one piece of information I was not able to get my self.  I have found all of the data except the users voting power at time of vote.  let me know if you do find this.  But it has been confirmed to me that it is not in steemsql
👍  
properties (23)
post_id27,112,045
authorpaulag
permlinkre-ura-soul-how-to-retrieve-historic-vote-payout-values-from-steem-anyone-know-20180121t200214693z
categorysteem
json_metadata"{"app": "steemit/0.1", "tags": ["steem"]}"
created2018-01-21 20:02:15
last_update2018-01-21 20:02:15
depth1
children1
net_rshares26,364,008,969
last_payout2018-01-28 20:02:15
cashout_time1969-12-31 23:59:59
total_payout_value0.276 SBD
curator_payout_value0.018 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length238
author_reputation224,445,607,823,384
root_title"How To Retrieve Historic Vote Payout Values From Steem? Anyone Know?"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@ura-soul ·
I see, have you found a way of accessing reward pool values for specific timestamps? I think I have only seen the function so far that returns it for the present moment. 
[this post](https://steemit.com/steemdev/@jfollas/write-a-steemit-web-app-part-12-voting) appears to give some parts of the answer - I need to learn more about Rshares.
properties (22)
post_id27,113,503
authorura-soul
permlinkre-paulag-re-ura-soul-how-to-retrieve-historic-vote-payout-values-from-steem-anyone-know-20180121t201212215z
categorysteem
json_metadata"{"app": "steemit/0.1", "links": ["https://steemit.com/steemdev/@jfollas/write-a-steemit-web-app-part-12-voting"], "tags": ["steem"]}"
created2018-01-21 20:12:06
last_update2018-01-21 20:12:06
depth2
children0
net_rshares0
last_payout2018-01-28 20:12:06
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_length339
author_reputation374,397,838,982,381
root_title"How To Retrieve Historic Vote Payout Values From Steem? Anyone Know?"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000