renew_ens_name
Renew ENS names by generating the transaction data needed to extend registration. Accepts any duration and batch renewals via a single Multicall3 transaction.
Instructions
Renew an ENS name or batch of names. Returns the transaction data needed to extend registration.
Unlike registration, renewal is simple — just one transaction with payment. No commit/reveal needed.
Accepts ANY duration — days, weeks, months, years. There is no minimum renewal period on ENS. Examples: 7 days (1 week), 28 days (1 month), 365 days (1 year).
Anyone can renew any name (you don't need to be the owner). This is useful for:
Extending your own names before expiry
Gifting renewal to a friend's name
Protecting valuable names from expiring
Returns exact on-chain pricing from the ETHRegistrarController with a 5% buffer (excess is refunded).
For batch renewals (multiple names), all names are bundled into a SINGLE Multicall3 transaction.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| names | Yes | ENS name or array of names to renew (e.g. "coffee.eth" or ["coffee.eth", "wallet.eth"]) | |
| years | No | DEPRECATED — use duration instead. Number of years (converted to days internally). | |
| duration | No | Duration in days to extend registration (e.g. 7 for 1 week, 28 for a month, 365 for a year). Default: 365. Any positive number is valid — there is NO minimum. |