You are viewing a single comment's thread from:

RE: Most Voted Authors - Weekly Report of Aug. 30 - Sept. 5

in #programming8 years ago

Great job and thanks for the honourable mention.

It's worth mentioning that if you grab the content for the "comment" (for those unaware, in the steem blockchain a post is also called a comment), if the id field matches the root_comment field, it's a post; otherwise, it's a comment. I mentioned this at the end of my when is the best time to publish on steemit post.

It probably doesn't matter, but it feels more correct than checking for the re- prefix.

Sort:  

acknowledged! thank you @bitcalm :)

You're right @bitcalm with 'comment' operation. I think the 'post' could be defined as an empty field: 'parent_author': ''.
I've explored blockchain with python API:
from steemapi.steemnoderpc import SteemNodeRPC
rpc = SteemNodeRPC('ws://node.steem.ws')
rpc.get_block()
and found various operations, but there was no info about 'rewards', STEEM generation per block, etc.
Where are these data transactions in blockchain? Thanks.

As far as I'm aware, rewards are not stored in the blockchain itself but calculated by steemd when it starts. You can access the reward data by calling get_content on a permlink.

Be warned: After 30 days the rshares and active_vote (and probably more) information is not calculated and thus not returned. This means you can only calculate rewards for post within that time frame. Also, pay attention to the mode, which tells you which payment has already been processed.

Ever wondered why posts older than 30 days seem to have zero votes? Now you know!

Thank you. It's explains a lot. I'll investigate for 'reward' transactions.