@evmcrispr/module-ens
v0.11.0
Published
ENS domain operations: renewal and content hash encoding.
Readme
ens module
ENS domain operations: renewal and content hash encoding.
load ensCommands
| Command | Description | |---------|-------------| | ens:create-subname ⚗️ | Create a subname under an ENS name you own. | | ens:register | Register a .eth name via the controller's commit/reveal flow (commits, waits and reveals in one go by default). | | ens:renew | Renew ENS domain registrations via bulk renewal. | | 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. For unwrapped .eth names this 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. |
Helpers
| 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. |
| @ens:avatar | string | Get the avatar URI for 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 | Get the 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 | Get the owner of an ENS name (the real owner when the name is wrapped). |
| @ens:rentPrice | number | Total price in wei to register or renew a .eth name for a duration. |
| @ens:resolver | address | Get the resolver contract address of an ENS name. |
| @ens:text | string | Read a text record from an ENS name. |
