Post
Share your knowledge.
How to create multi-level subdomains using SuiNS?
I've been trying to create nested subdomains using SuiNS, and I'm confused about the maximum depth allowed. Despite the documentation stating that the total nesting depth can be 10 levels (including SLD and TLD), I'm getting an error when trying to create a 4th-level subdomain. The error mentions an invalid parent object. Can someone explain the limitation and how to properly create deeper nested subdomains?
- Move CLI
- Move
Answers
2In SuiNS, additional levels beyond this may not create new NFTs for each child in deeper levels. The total depth of 8 levels (+2 for SLD and TLD) represents maximum levels possible with nodes for each level, which means you can reach up to one.two.three.four.five.six.seven.eight.name.sui
. Leafs can only go down one level from a non-leaf, meaning your structure may only support direct children from a parent node. An example implementation would involve ensuring each level is correctly set up with the appropriate parent before adding new subdomains. For five.six.seven.eight.name.sui
, you need to ensure each preceding level is set and permissions allow further nesting.
The ownership model in SuiNS dictates that the parent of each level has control over its immediate children. To create a subdomain at the 4th level, you need to ensure you're using the immediate parent domain for creation. For example, if you have abc.sui
as a 2nd level, and inner.abc.sui
as a 3rd level, you must use inner.abc.sui
to create a 4th-level subdomain like extra.inner.abc.sui
.
Do you know the answer?
Please log in and share it.
Move is an executable bytecode language used to implement custom transactions and smart contracts.