Create and fund a smart contract from a smart contract using inner transactions?

Hey there,

I have to do a bank application on algorand. So far, I have accounts that will play the role of customers, the bank will be implemented as a smart contract and what I want is, when an account opts-in to the bank, the bank should create a new smart contract, which will be the customer’s account in this bank. Now when the customer wants to fund or withdraw money from his bank account, the transactions will go throught the bank. The problem is that I can’t find any code snippets, which show how a new smart contract can be created using inner transactions. Sorry, I am just starting using Algorand and it’s really difficult to find the way to do this. I will appreciate it if someone help me :slight_smile:

See examples here:

Specifically c2c_max_depth and trampoline

2 Likes