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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"label": "<label>"
},
"name": "register-ens-name"
}
}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 |