Current Application Address in PyTeal

Hi,

I am working on creating a smart contract in PyTEAL where i am issuing an inner transaction to opt-in to get a ASA token. For that i need to have the CurrentApplicationAddress. I understand it is available in TEAL, how can i get this value in PyTeal ? Please clarify

Thanks,

Hi,

You’d want the Global.current_application_address()

https://pyteal.readthedocs.io/en/stable/api.html#pyteal.Global.current_application_address

Ben