I would try to return application local state for a specific account. I’m trying to use indexer with PureStake.
#initialize an indexerClient
headers = {
"X-API-Key": "my_key_purestake",
}
indexer_client = indexer.IndexerClient("", "https://testnet-algorand.api.purestake.io/idx2", headers)
I found this method v2client.indexer — algosdk documentation (py-algorand-sdk.readthedocs.io) but does not appear in visual studio, as if it were not available.
In fact, if I try to call it:
#initialize an indexerClient
headers = {
"X-API-Key": "my_key_purestake",
}
indexer_client = indexer.IndexerClient("", "https://testnet-algorand.api.purestake.io/idx2", headers)
indexer_client.lookup_account_application_local_state(player1_address)
it returns an error:
c:/Users/loren/OneDrive/Desktop/algorand_project/project/contracts/my_sasso_carta_forbici/main.py
Traceback (most recent call last):
File “c:\Users\loren\OneDrive\Desktop\algorand_project\project\contracts\my_sasso_carta_forbici\main.py”, line 500, in
main()
File “c:\Users\loren\OneDrive\Desktop\algorand_project\project\contracts\my_sasso_carta_forbici\main.py”, line 414, in main
indexer_client.lookup_account_application_local_state(player1_address)
AttributeError: ‘IndexerClient’ object has no attribute ‘lookup_account_application_local_state’