is there a maximum amount of token

+3 votes
is there a maximum amount of native coins/tokens that can be pre-mined, like a cap ??
asked Jun 2, 2019 by CryptoProphet

1 Answer

+2 votes

You can set this via the first-block-reward blockchain parameter, and its maximum value is 1000000000000000000 (10^18 or one quintillion). This limits the value in raw (integer) currency units – the actual display value would depend on the native-currency-multiple setting.

answered Jun 2, 2019 by MultiChain
so this value of amount of coins doesn't include the decimal, so i can create up to 1000000000000000000.00000000 coins? and is the 8 digets after the decimal set in stone or can that be changed as well ??
No, it's the opposite - this is the largest number of raw units, where a raw unit is the smallest available amount to transact. You can control the size of the smallest unit using the native-currency-multiple setting, e.g. 1000000 means that the smallest unit is one millionth of a coin.
sorry i probly sound dumb here , ok I want to have 21000000000000 native coins/currency, firstly is this possible?
would i still have 8 decimal places?
sorry just not getting my head around that bit, this is a learning experience for me .
is this correct?
initial-block-reward = 0                
first-block-reward = 21000000000000               
reward-halving-interval = 52560000      
reward-spendable-delay = 3              
minimum-per-output = 0                  
                                        
maximum-per-output = 100000000000000    
minimum-offchain-fee = 0                
minimum-relay-fee = 0                   
native-currency-multiple = 100000000
How divisible do you want the native currency to be?
I would like it to be to 8 decimal places
ie: 0.00000000
OK, so you want native-currency-multiple = 100000000
Thank you will probly have more question, thanks for the reply , like i said this is a learning experience for me , to get a deeper understanding of this all
...