App address from app id - General - Algorand
App address from app id
post by hungpq on Mar 9, 2022
In Pyteal, are there anyway to get the app address from given app id?
I see the similar method in the python sdk but can not find in pyteal anyway. Or if could, can that field be returned with CreatedApplicationID (something like CreatedApplicationAddress)?
The scenario here is that I created app A in the app B (using contract2contract), then the app B can get app A id but seem its hard to get app A address. it’s for funding minimal balance amount and doing initial stuff (or any best practice for funding minimum balance here)? (think of uni swap create and add liquidity in 1 txn)
post by Ben on Mar 9, 2022
Hi Hungpq,
You can use the AppParams to get the app address, see this example
Ben