QuantumMechanics / NEM-sdk

NEM Developer Kit for Node.js and the browser
MIT License
137 stars 82 forks source link

How to create new mosaics #32

Closed takahser closed 6 years ago

takahser commented 6 years ago

Can the NEM sdk be used to create new mosaics?

To achieve this, according to the NEM NIS API Documentation a MosaicDefinitionCreationTransaction has to be created and published to the network. A MosaicDefinitionCreationTransaction object is actually just yet another RequestPrepareAnnounce object so it's a decoded transaction, that will be encoded into a RequestAnnounce transaction and then broadcasted to the NEM network by sending it to NIS.

Unfortunately I didn't find any information on how to do this with the NEM sdk.

QuantumMechanics commented 6 years ago

Hi,

You can do everything with the nem-sdk :)

Here is an example: https://github.com/QuantumMechanics/NEM-sdk/blob/master/examples/nodejs/createMosaic.js