Long story short, the only way I’ve been able to get indexer
from algosdk.v2client
in the python SDK to work is with PureStake. I can’t get it to work with AlgoExplorer, or with AlgoNode. I get a nice variety of errors.
Here’s some code example of it not working:
from algosdk.v2client import indexer
indexer_server = "https://algoindexer.algoexplorerapi.io/v2"
indexer_client = indexer.IndexerClient("", indexer_server, {"User-Agent":"DoYouLoveMe?"})
indexer_client.search_transactions_by_address('UZY64IU4D6OOOVMIY6DBRJJLFTWMNLIZB5HMJRVAQ5IQLOUCSANJ55DIBM')
I tried changing User-Agent after reading a similar error with AlgodClient on here, but didn’t get anywhere with it. I’d appreciate any help.