ens:wrap
Wrap an ENS name in the NameWrapper.
Syntax
Section titled “Syntax”ens:wrap <name>Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
name |
string |
ENS name (e.g. mydao.eth) |
Options
Section titled “Options”| Name | Type | Description |
|---|---|---|
--resolver |
address |
Resolver of the wrapped name |
--fuses |
number |
Owner-controlled fuses to burn while wrapping (.eth second-level names only; use @ens.fuses) |
Examples
Section titled “Examples”load ens
# Wrap a .eth second-level name (single transaction, no approval needed)ens:wrap mydao.eth
# Wrap and burn fuses in one goens:wrap mydao.eth --fuses @ens.fuses("cannot-unwrap" "cannot-transfer")
# Wrap a subname (approves the NameWrapper, then wraps)ens:wrap vault.mydao.eth- Wrapping a
.ethsecond-level name automatically burnsparent-cannot-control. --fusesonly applies to.ethsecond-level names; for subnames burn fuses afterwards withens:set-fuses.
See Also
Section titled “See Also”- ens:unwrap — unwrap a name
- ens:set-fuses — burn fuses later