Is it possible to view the set of accounts that vote for any given inflation destination?
For example, this is a popular inflation destination. How can I fetch a list of accounts that have voted for this destination?
Stellar Stack Exchange is a question and answer site for developers and users of Stellar and the Stellar Distributed Exchange. It only takes a minute to sign up.Sign up to join this community
If you did not want to rely on a 3rd party to gather this data you could run a stellar node and query the postgres database directly.
I have used the stellar-core code above to give an idea of the query you would need to run.
db.getPreparedStatement("SELECT accountid, balance, inflationdest " "FROM accounts WHERE inflationdest = :inflationdest");
You can use fed.netwok's
inflation public API endpoint to get the list of accounts that has voted for an inflation destination. In your case the URL would be: