Note
The catbuffer schemas repository defines how each transaction type should be serialized. In combination with the catbuffer-generators project, developers can generate builder classes for a given set of programming languages.
Announce a MosaicDefinitionTransaction to create a new mosaic.
Version: 0x01
EntityType: 0x414D
Inlines:
| Property | Type | Description |
|---|---|---|
| id | MosaicId | Identifier of the mosaic. |
| duration | BlockDuration | Mosaic duration expressed in blocks. If set to 0, the mosaic is non-expiring. |
| nonce | uint32 | Random nonce used to generate the mosaic id. |
| flags | MosaicFlag | Mosaic flags. |
| divisibility | uint8 | Mosaic divisibility. |
Announce a supply change transaction to increase or decrease a mosaic’s supply.
Version: 0x01
EntityType: 0x424D
Inlines:
| Property | Type | Description |
|---|---|---|
| mosaicId | UnresolvedMosaicId | Affected mosaic identifier. |
| delta | Amount | Amount of supply to increase or decrease. |
| action | MosaicSupplyChangeAction | Supply change action. |
| Property | Type | Description |
|---|---|---|
| mosaicId | UnresolvedMosaicId | Mosaic identifier. If the most significant bit of byte 0 is set, a namespaceId (alias) is used instead of the real mosaic identifier. |
| amount | Amount | Mosaic amount. |
Enumeration: uint8
| Id | Description |
|---|---|
| 0x00 | No flags present. |
| 0x01 | Mosaic supports supply changes even when the mosaic creator owns partial supply. |
| 0x02 | Mosaic supports transfers between arbitrary accounts. When not set, the mosaic can only be transferred to/from the mosaic creator. |
| 0x04 | Mosaic creator can add rules to restrict which accounts are enabled to send and receive the mosaic. |
Did you find what you were looking for? Give us your feedback.