Skip to content

ens:create-subname

Create a subname under an ENS name you own.

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

Supports runtime fields inside smart blocks. Use explicit @helper! expressions or captured outputs; other fields are evaluated at build time.

ens:create-subname <parent> <label> <owner>
NameTypeEvaluationDescription
parentstringBuild timeParent ENS name (e.g. mydao.eth)
labelstringBuild timeSubname label (e.g. vault for vault.mydao.eth)
owneraddressRuntime in smart blocksOwner of the subname
NameTypeEvaluationDescription
--resolveraddressRuntime in smart blocksResolver for the subname (defaults to the parent's)
--fusesnumberBuild timeFuses to burn on the subname (wrapped parents only; use @ens:fuses)
--expirynumberRuntime in smart blocksSubname 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.