ens:renew
Renew ENS domain registrations via bulk renewal.
Syntax
Section titled “Syntax”ens:renew <domains> <duration>Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
domains | string | array | ENS label(s) or names to renew |
duration | number | Renewal duration, in time units (e.g. 1y) |
Examples
Section titled “Examples”load ens
# Renew a single domain for one yearens:renew "mydomain" 1y
# Renew multiple domains at onceens:renew ["domain1" "domain2" "domain3"] 1y- Only works on Ethereum mainnet (chain ID 1)
- Uses the ENS bulk renewal contract
See Also
Section titled “See Also”- @ens:contenthash — encode content hashes
- @ens — resolve ENS names