Check if an ASA is opted in by an account with TEAL/Pyteal

Is there a way to verify if an account has opted in to an ASA during a contract’s execution time?

Here is the PyTeal section that covers this. Note the way the MaybeValue works.

https://pyteal.readthedocs.io/en/latest/assets.html#asset-holdings

2 Likes