Register ENS Name
register-ens-nameRegister a new .eth ENS name by checking availability, computing cost, and executing the commit-wait-register flow. Supports Sepolia and Ethereum mainnet with configurable registration duration.
Instructions
Register a new .eth ENS name. Checks availability, computes cost, and completes the commit-wait-register flow. Takes ~65 seconds due to the commitment waiting period. Uses SENDER_PRIVATE_KEY from environment.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | Chain for ENS registration. Supported: sepolia, ethereum | sepolia |
| label | Yes | Name to register (without .eth suffix, e.g. "myname") | |
| years | No | Registration duration in years (default: 1) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cost | Yes | ||
| name | Yes | ||
| chain | Yes | ||
| owner | Yes | ||
| expiresIn | Yes | ||
| commitTxHash | Yes | ||
| registerTxHash | Yes |