Creating a smart token
2 min
When creating a smart token, the user can define the token as mintable or non-mintable. If non-mintable, the token is limited to the initial supply specified at the creation time. The creator can mint additional smart tokens if the token is defined as mintable.
Example message of token creation:
{
"type": 2,
"subtype": 0,
"timestamp": 170266230,
"deadline": 1000,
"senderPublicKey": "599fbbde6239e119b086f17adb54f31a9bf910154b567e830a47632c8e740f11",
"amountNQT": "0",
"feeNQT": "100000000000",
"signature": "000e0d4df426cc562ea9a5af2fff975e3b1d27b646dee03a104a9c039937cd0f0c772f9a0e8458d49234ea62cf185c6fff639802803724ac3c9393b4ad919bbc",
"signatureHash": "2500b5dbf0e80ab812d94a32d6c1c8e0d4b063cde901ad0daad549f23e78186b",
"fullHash": "8409fe8f2e3b1eac5bde290ca3ccf2afc83dffa4eef73007685fba08a1156367",
"transaction": "12402415494995249540",
"attachment": {
"version.AssetIssuance": 1,
"name": "TRT",
"description": "Trade Token (TRT) - the BTDEX trade reward token. Offer makers are rewarded with TRT and TRT holders receive earnings coming from the decentralized trade fees.",
"decimals": 4,
"mintable": false,
"quantityQNT": "21588128000000"
},
"attachmentBytes": "01035452549f00547261646520546f6b656e202854525429202d207468652042544445582074726164652072657761726420746f6b656e2e204f66666572206d616b6572732061726520726577617264656420776974682054525420616e642054525420686f6c646572732072656365697665206561726e696e677320636f6d696e672066726f6d2074686520646563656e7472616c697a656420747261646520666565732e0068b360a213000004",
"sender": "17890479747314887426",
"senderRS": "S-ECS4-KDE2-NMSY-H2YKJ",
"height": 704016,
"version": 1,
"ecBlockId": "10017748855508221404",
"ecBlockHeight": 704006,
"block": "4097203188771082104",
"confirmations": 294584,
"blockTimestamp": 170266262,
"requestProcessingTime": 1
}
Parameter | Value |
|---|---|
Name | Name of the smart token. Max 10 letters - this is not unique |
Description | A description of the token |
Decimals | Number of decimals - can be 0 to 8 |
Mintable | If true, you can mint more tokens |
QuantityQNT | The initial amount of smart tokens by creation is attached to the issuer account. |
Smart Token Id
The smart token Id is always the transaction Id for creating the smart token. This Id is unique.