Skip to content

ens:create-subname

Create a subname under an ENS name you own.

ens:create-subname <parent> <label> <owner>
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
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)
load ens
# Give the treasury its own subname
ens:create-subname mydao.eth treasury 0x1234567890abcdef1234567890abcdef12345678
# Wrapped parent: burn fuses so the subname is out of the parent's control
ens:create-subname mydao.eth vault @me --fuses @ens.fuses("parent-cannot-control" "cannot-unwrap")
  • The subname inherits the parent’s resolver unless --resolver is passed.
  • --fuses and --expiry require the parent to be wrapped in the NameWrapper.