App address from app id

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)

Hi Hungpq,

You can use the AppParams to get the app address, see this example

Ben

1 Like