Wondering what the best way to get a list of incoming delegations is. Currently parsing the Account.get_account_history() return, but some old delegations aren't being displayed, as they're too old to be returned under the limit of 10,000 operations).
Is there any method similar to, say, Account.get_incoming_delegations() ? Is something like that even possible? @holger80?
Heyooo! Looking for a bit of help w/ the beem.comment module.
It's easy to pull the comment.get_beneficiaries_pct() and the comment.get_rewards()['author_payout'] and do a bit of math to find the value in SBD. But I'm having an issue, because currently, the blockchain is paying out in STEEM, not SBD.
So my question is:
the values returned by comment.get_rewards()['author_payout'] -- are the rewards the value of what the post was in STEEM, but normalized to the current SBD rate? Or is the value that this returns simply just what the reward payout WAS worth in SBD at the moment the 7-day window closed?
Currently, my project is accumulating the beneficiary rewards for all posts in a 7-day window and then redistributing them, and I need to be confident of what the values are in STEEM.
Follow up question:
Would it be possible to modify the comment.get_rewards() method to include an argument for which asset you'd like the values returned as?
e.g.: comment.get_rewards(asset="steem")['author_payout'] or comment.get_rewards(asset="sbd")
Topic: Getting Incoming Delegations
Wondering what the best way to get a list of incoming delegations is. Currently parsing the Account.get_account_history() return, but some old delegations aren't being displayed, as they're too old to be returned under the limit of 10,000 operations).
Is there any method similar to, say, Account.get_incoming_delegations() ? Is something like that even possible? @holger80?
View this topic on TokenBB
Reply to Getting Incoming Delegations
After spending a couple minutes looking, seems like using:
hist = account.history(only_ops=['delegate_vesting_shares'])
returns everything nicely!
Woop! Beempy for the win.
View the topic on TokenBB
Topic: Determining beneficiary payouts
Heyooo! Looking for a bit of help w/ the beem.comment module.
It's easy to pull the
comment.get_beneficiaries_pct()
and thecomment.get_rewards()['author_payout']
and do a bit of math to find the value in SBD. But I'm having an issue, because currently, the blockchain is paying out in STEEM, not SBD.So my question is:
comment.get_rewards()['author_payout']
-- are the rewards the value of what the post was in STEEM, but normalized to the current SBD rate? Or is the value that this returns simply just what the reward payout WAS worth in SBD at the moment the 7-day window closed?Currently, my project is accumulating the beneficiary rewards for all posts in a 7-day window and then redistributing them, and I need to be confident of what the values are in STEEM.
Follow up question:
comment.get_rewards()
method to include an argument for which asset you'd like the values returned as?comment.get_rewards(asset="steem")['author_payout']
orcomment.get_rewards(asset="sbd")
Thoughts?
Cheers!
View this topic on TokenBB