Question: How to figure out how much and by whom is delegated to an account using the Steem API or steem-python?

in #steemdev6 years ago (edited)

I am trying to figure out how I can determine how much SP are delegated to a particular account and by whom. It is important to do this without using third party services (like steemreports), but by interacting with a blockchain node directly. Hence, I want to use the Steem API directly or, preferably, use the steem-python wrapper library.

Anyone around here knowing how this works? Maybe @justyy? Thanks a lot :-)

EDIT: All I could come up with so far is this:

[x for x in account.history_reverse(filter_by='delegate_vesting_shares')]

But this seems to be a bit over top!? Doesn't it? I don't want to stream the entire history everytime I need an update on the vested shares.


Updated the post with a solution I don't really fancy :-D

I just used a API from @Justyy for similar purpose on the Delegation Pages for SteemMakers it uses to get a JSON list of delegators and their stake.

Excellent i like u
follow and upvote plz do same

Thanks, but the thing is, I don't want to rely on a third party API, that's kind of a hard constraint.

great things
very good

Can you say in your own words what my question is about?

Machine learn that spam comment :D

Hab deinen Post im discord gesehen. Ich probiers auch mal mit der justy Lösung.

Coin Marketplace

STEEM 0.28
TRX 0.12
JST 0.033
BTC 70893.40
ETH 3659.70
USDT 1.00
SBD 3.76