You are viewing a single comment's thread from:

RE: Making a script to get updates when your voting power is 100% Part 06

in #computerscience3 years ago

Not sure if you know about beem yet, and I don't do much on the python side of things.. bit I think this might be a whole lot easier.

Use this library to do a get_accounts API request
https://github.com/holgern/beem/blob/master/beem/account.py

More info on the library and such here : https://github.com/holgern/beem

The parts from that json response that would be relevant is the percentage of voting_manabar.current_mana to vesting_shares.

hope this helps!!

Sort:  

A couple other useful links, maybe: https://developers.hive.io/apidefinitions/#condenser_api.get_accounts
And/or
https://developers.hive.io/apidefinitions/#database_api.find_accounts

Find accounts option looks like it would be something like post_voting_power and vesting_shares.. idk tho.