bulk_register
Register multiple ENS names in bulk — total 2 transactions (multiCommit + multiRegister) via NWBulkRegistrar.
Much cheaper and faster than registering names one at a time. Supports up to 20 names per batch.
Flow: multiCommit (1 tx, all N commitments) → wait 60 seconds → multiRegister (1 tx with total ETH for all N names). Excess ETH is refunded.
Each batch shares one secret across all names; uniqueness comes from the per-name label inside each commitment hash. All names must be available for registration.
After registration, use bulk_set_records to configure all names at once with addresses, text records, and content hashes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| names | Yes | Array of ENS names to register (e.g. ["coffee.eth", "tea.eth"]). Max 20 per batch. | |
| duration | No | Registration duration in days, applied to every name in the batch. ENS protocol minimum is 28 days; maximum is 3650 (10 years); default is 365 (1 year). | |
| durationYears | No | DEPRECATED — use duration (days) instead. Number of years (converted to days internally). | |
| walletAddress | Yes | Wallet address that will own all registered names |