How to send a box reference within inner txn

Hello,
Iam using a smart contract as a payment proxy, it has to receive an amount and then send it to the new created application(a well known practice to fund a new created application at creation time).
This new created application must create a new box once it receives this amount, however to create a box I must include its name in the boxes reference array, and since the proxy contract is the caller, I don’t know how to do that, Iam using Pyteal, Iam looking around in docs and github code and I didn’t find any box reference array, so any help about that please ?
Thank you

1 Like

The box refs must go on the outer txn, and you can use the simulate on the transaction to find out what references are needed.

2 Likes

Thank you @SilentRhetoric for your help

1 Like