How to send a box reference within inner txn - Algorand

How to send a box reference within inner txn

post by Opeerah on Aug 16, 2024

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

post by SilentRhetoric on Aug 16, 2024

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.

post by Opeerah on Aug 16, 2024

Thank you @SilentRhetoric for your help