After building a chain from Substrate node template there are some initial native token balances in the predefined accounts. Can I mint the native token on a smart contract level using the root
account possibly using ink! smart contract framework?
1 Answer
To deploy the smart contract on substrate chain you need to integrate contract pallet and then with the help of contract you will be able to deploy the Ink smart contract on substrate chain. https://substrate-developer-hub.github.io/substrate-how-to-guides/docs/pallet-design/add-contracts-pallet/
-
I already added a contract pallet...my question was more of a How do I mint a new native token from the smart contract level?– TahlilCommented Oct 16, 2023 at 2:11
-
You need to write the smart contract and then you can deploy the contract by this pallet. to build the contract you can follow this reference: docs.substrate.io/tutorials/smart-contracts/…– PankajCommented Oct 16, 2023 at 5:40
-
I do not want to mint a custom token from the smart contract, I want to mint native coin/token from the smart contract.– TahlilCommented Oct 16, 2023 at 6:06
-
Ok for native token you need to do it with the help of balances or assets pallet– PankajCommented Oct 17, 2023 at 4:38
-