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 |
any |
ENS label(s) or names to renew |
duration |
any |
Renewal duration in seconds |
Examples
Section titled “Examples”load ens
# Renew a single domain for one year (in seconds)ens:renew "mydomain" 31536000
# Renew multiple domains at onceens:renew ["domain1" "domain2" "domain3"] 31536000- 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