3

I have downloaded the substrate node template and started working on a new project. For my project, I want to implement a native token. I've decided to use pallet balances to implement this native token, but I'm confused about the token minting process in this pallet. Also, is there any initial token mint available in this pallet?

1 Answer 1

2

An initial mint map can be setup in the GenesisConfig. You can configure the initial balances of any number of accounts in there.

Minting can be done only by root via force_set_balance; this call forces the balance of an account to a specific amount.

2
  • It was useful however, Can You please elaborate "Minting Can be done only by root"? Oct 11, 2023 at 2:45
  • You can see here that the call is only available to root. This means that the chain either needs the Sudo pallet, or the call needs to go through a governance proposal and be voted on. Oct 25, 2023 at 18:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.