ens:create-subname
Create a subname under an ENS name you own.
Syntax
Section titled “Syntax”ens:create-subname <parent> <label> <owner>Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
parent |
string |
Parent ENS name (e.g. mydao.eth) |
label |
string |
Subname label (e.g. vault for vault.mydao.eth) |
owner |
address |
Owner of the subname |
Options
Section titled “Options”| Name | Type | Description |
|---|---|---|
--resolver |
address |
Resolver for the subname (defaults to the parent’s) |
--fuses |
number |
Fuses to burn on the subname (wrapped parents only; use @ens.fuses) |
--expiry |
number |
Subname expiry timestamp (wrapped parents only) |
Examples
Section titled “Examples”load ens
# Give the treasury its own subnameens:create-subname mydao.eth treasury 0x1234567890abcdef1234567890abcdef12345678
# Wrapped parent: burn fuses so the subname is out of the parent's controlens:create-subname mydao.eth vault @me --fuses @ens.fuses("parent-cannot-control" "cannot-unwrap")- The subname inherits the parent’s resolver unless
--resolveris passed. --fusesand--expiryrequire the parent to be wrapped in the NameWrapper.
See Also
Section titled “See Also”- @ens.fuses — build a fuse bitmap
- ens:wrap — wrap a name