This forum is a read-only archive. Posting, replying and signing in are disabled.

Create Asset / Smart Contract using a Smart Contract

JasonW

No contracts cant create other contracts or assets, but a call to a smartcontract can be grouped to with an asset creation transaction or smart contract creation transaction to approve the creation.

✔ Solution
fabrice

To complement @JasonW’s answer, while you can make smart contracts create smart contracts and assets by using group transactions, for many use cases, you most likely do not want to do it this way on Algorand.

The exact pattern you want to use may depend on the actual application.
For example, to create a UniSwap-like smart contract on Algorand, you most likely want to use a single stateful smart contract application and one escrow stateless smart contract for each pair.
See GitHub - hyplabs/AlgoSwap: Decentralized Uniswap-like exchange for Algorand Standard Assets. Currently a work-in-progress.