Skip to content

ens:create-subname

Create a subname under an ENS name you own.

⚗️ Experimental — available at next.evmcrispr.com.

ens:create-subname <parent> <label> <owner>
NameTypeDescription
parentstringParent ENS name (e.g. mydao.eth)
labelstringSubname label (e.g. vault for vault.mydao.eth)
owneraddressOwner of the subname
NameTypeDescription
--resolveraddressResolver for the subname (defaults to the parent's)
--fusesnumberFuses to burn on the subname (wrapped parents only; use @ens:fuses)
--expirynumberSubname 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.