ENS domain operations: renewal and content hash encoding.
| Command | Description |
|---|
| ens:create-resolver | Deploy 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:migrate | Move 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:register | Register 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:renew | Renew .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-addr | Set the address record of an ENS name. |
| ens:set-contenthash | Set the content hash of an ENS name. |
| ens:set-fuses ⚗️ | Burn NameWrapper fuses on a wrapped ENS name. |
| ens:set-primary-name | Set the primary ENS name (reverse record) of the calling account. |
| ens:set-resolver | Set the resolver contract of an ENS name. |
| ens:set-text | Set a text record on an ENS name. |
| ens:transfer | Transfer 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. |
| Helper | Returns | Description |
|---|
| @ens:addr | address | Resolve an ENS name to an address, optionally per coin type. |
| @ens:available | bool | Check whether a .eth name is available for registration (ENSv2's ETHRegistrar, which counts names still on ENS v1 as taken). |
| @ens:avatar | string | Avatar URI of an ENS name. |
| @ens:coinType | number | ENSIP-11 coin type of an EVM chain, for multichain address records. |
| @ens:coinType.decode | string | Chain name of an ENSIP-11 coin type (the inverse of @ens:coinType). |
| @ens:contenthash | bytes | Encode a content hash (ipfs, ipns, skynet) for ENS records. |
| @ens:contenthash.of | string | Read the decoded content hash of an ENS name (e.g. ipfs://…). |
| @ens:expiry | number | Registration expiry timestamp of a .eth name. |
| @ens:fuses ⚗️ | number | Combine NameWrapper fuse names into their uint32 bitmap. |
| @ens:fuses.decode ⚗️ | array | Decode a NameWrapper fuse bitmap into its fuse names. |
| @ens:fuses.of ⚗️ | array | Burned fuse names of a wrapped ENS name. |
| @ens:labelhash | bytes32 | Compute the ENS labelhash of a single label. |
| @ens:name | string | Reverse-resolve an address to its primary ENS name. |
| @ens:namehash | bytes32 | Compute the ENS namehash of a domain name. |
| @ens:normalize | string | Normalize an ENS name per ENSIP-15. |
| @ens:owner | address | Owner of an ENS name (the real owner when the name is wrapped). |
| @ens:resolver | address | Resolver contract address of an ENS name. |
| @ens:text | string | Read a text record from an ENS name. |