Skip to content

ens

ENS domain operations: renewal and content hash encoding.

load ens
CommandDescription
ens:create-resolverDeploy an ENSv2 resolver (PermissionedResolver) through ENS's VerifiableFactory and bind its predicted address to . Its admin (the sender by default) gets every role, so it can set records of any name that uses it.
ens:create-subname ⚗️Create a subname under an ENS name you own. Under an ENSv2 name it registers the subname in the name's subregistry, deploying and attaching one first when the name has none.
ens:migrateMove a .eth name from ENS v1 to ENSv2: its owner transfers it to ENSv2's migration controller, which registers it in ENSv2 with the same expiry plus 62 days. Unwrapped and unlocked wrapped names go to the unlocked controller, locked ones (CANNOT_UNWRAP burned) to the locked one.
ens:registerRegister a .eth name with ENSv2's ETHRegistrar: commit, wait, then approve the payment token (USDC by default) and reveal, in one go by default.
ens:renewRenew .eth names, paid in an ERC-20 (USDC by default): ENSv2 names on the ETHRegistrar, names still on ENS v1 on ETHRenewerV1, each with one approval and one batch.
ens:set-addrSet the address record of an ENS name.
ens:set-contenthashSet the content hash of an ENS name.
ens:set-fuses ⚗️Burn NameWrapper fuses on a wrapped ENS name.
ens:set-primary-nameSet the primary ENS name (reverse record) of the calling account.
ens:set-resolverSet the resolver contract of an ENS name.
ens:set-textSet a text record on an ENS name.
ens:transferTransfer ownership of an ENS name. An ENSv2 name (or subname) moves its registry token, with the owner's roles. On ENS v1, an unwrapped .eth name hands over both the registrant NFT and the Registry controller (reclaim); transferring to the current registrant just reclaims the controller role.
ens:unwrap ⚗️Unwrap an ENS name from the NameWrapper.
ens:wrap ⚗️Wrap an ENS name in the NameWrapper.
HelperReturnsDescription
@ens:addraddressResolve an ENS name to an address, optionally per coin type.
@ens:availableboolCheck whether a .eth name is available for registration (ENSv2's ETHRegistrar, which counts names still on ENS v1 as taken).
@ens:avatarstringAvatar URI of an ENS name.
@ens:coinTypenumberENSIP-11 coin type of an EVM chain, for multichain address records.
@ens:coinType.decodestringChain name of an ENSIP-11 coin type (the inverse of @ens:coinType).
@ens:contenthashbytesEncode a content hash (ipfs, ipns, skynet) for ENS records.
@ens:contenthash.ofstringRead the decoded content hash of an ENS name (e.g. ipfs://…).
@ens:expirynumberRegistration expiry timestamp of a .eth name.
@ens:fuses ⚗️numberCombine NameWrapper fuse names into their uint32 bitmap.
@ens:fuses.decode ⚗️arrayDecode a NameWrapper fuse bitmap into its fuse names.
@ens:fuses.of ⚗️arrayBurned fuse names of a wrapped ENS name.
@ens:labelhashbytes32Compute the ENS labelhash of a single label.
@ens:namestringReverse-resolve an address to its primary ENS name.
@ens:namehashbytes32Compute the ENS namehash of a domain name.
@ens:normalizestringNormalize an ENS name per ENSIP-15.
@ens:owneraddressOwner of an ENS name (the real owner when the name is wrapped).
@ens:resolveraddressResolver contract address of an ENS name.
@ens:textstringRead a text record from an ENS name.