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.
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!
you could look at @furion's guide. see the transactions
https://steemit.com/steem/@furion/developers-guide-to-steem-s-blockchain
Thank you. It's explains a lot. I'll investigate for 'reward' transactions.