How do check if an account has opted to my application(smart contract)
Welcome to Algorand:
- within a smart contract: Opcodes - Algorand Developer Portal - PyTEAL has a similar solution
- from outside, using indexer, use endpoint indexer - Algorand Developer Portal - SDK have functions to call this endpoint