How to add namespace to mosaic?

#1

I created namespace using nem2-cli transaction namespace command, then I use nem2-cli transaction mosaic to create a mosaic with namespace, but I found out the --namespacename has been remove from the nem-cli.

nem2-cli transaction mosaic --namespacename mass.coin --amount 100000000000000 / --transferable--supplymutable --divisibility

Does it mean I cannot use namespace in mosaic?

#2

Yes, you can but I’d say you must use SDK.
Now you must announce an alias transactio to attach a namespace to a mosaic.
You must first create the namespace and the mosaic.
It is also possible to attach a namespace to an account.

1 Like