Is it possible to get the local state of all applications?

For example, in the pyteal doc’s voting example, accounts that vote have their local state altered to indicate they have voted.

Imagine a scenario where one would like to audit the vote, by getting the addresses of all those that voted. Can this be done, if so how?

You can use the indexer to get all the accounts that opted in an application:

However note that accounts may clear out their state.
If when clearing out, their vote is removed, then the above still works.
If when clearing out, their vote should still be counted, then you need to use another approach such as looking at all the transactions involving the voting app application call using indexer - Algorand Developer Portal

1 Like