Get the App ID of new Application created by inner transaction

Hello,
I want to create an Application B within another Application A using inner transaction, how can I get the Application Index of Application B ?
Thank you

I believe this example is what you are looking to do:

1 Like

Thank you @SilentRhetoric,
Looks a great example but this is not my situation: what Iam looking for is getting the App ID of a new created application by an inner transaction, for example

InnerTxnBuilder.Begin(),
    InnerTxnBuilder.SetFields(
      {
         TxnField.type_enum: TxnType.ApplicationCall, 
         TxnField.on_completion: OnComplete.NoOp,
         ... 
            }
        ),
    InnerTxnBuilder.Submit(),
... 

How can I can the App ID of this new created application to use it in my DApp ?

Aaaah okay, I think I understand it now, created_application_id is what I missed, thank you for your help

1 Like