I have been going through the documentation for catapultv2, and while playing around with the java api on https://nemtech.github.io/guides/mosaic.html#lets-get-into-some-code I saw a “duration” parameter while creating the definition transaction. And in the docs (https://nemtech.github.io/concepts/transaction.html#mosaic-definition-transaction) , it says:
“”"
Duration
Renting duration represents the number of confirmed blocks we would like to rent our namespace for.
During the renting period, there is the possibility to extend the rental by sending a RegisterNamespaceTransaction with the extra-confirmed block to rent the namespace.
When a renting period ends, the namespace will become inactive, and you will have N blocks to re-rent it.
“”"
Regarding this part, I am confused… Basically my main questions are
- How to track if we are getting closer to the initial limit that we set? Are will we get any observable even from the node (like rest of the transactions) to notify/alert us?
- What happens if we do not re-rent it? All of the mosaics will become useless or they will be just unspendable?
I have tried to find similar topics on forum here, and only similar one is What happen on expiring Mosaic? which is also unanswered till now.
could anyone explain the duration on mosaics (and namespaces as well) or direct me somewhere with details?