mint_subnames
Bulk-create subnames under a parent ENS name in a single transaction. Designed for agent fleet deployment — create identities like agent001.company.eth, agent002.company.eth, etc. Each subname can have its own owner and records (addresses, text records).
All N subnames bundle into ONE NameWrapper.multicall transaction (all-or-nothing). All record updates across all subnames bundle into ONE Resolver.multicall transaction. If the parent is unwrapped, the recipe prepends a one-time wrap setup (approve + wrapETH2LD) — after that, every subsequent batch on the same parent is a single signature.
Returns a flat steps[] array — each step is one wallet signature, in order. Subnames are free to create; only gas costs apply.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| subnames | Yes | Array of subnames to create (max 50 per batch) | |
| parentName | Yes | Parent ENS name (e.g. "company.eth") | |
| walletAddress | Yes | Wallet address that owns the parent name | |
| allowOverwrite | No | Default false. If false, throws when any subname already exists. Set true to overwrite existing subnames (destructive — replaces current owner). |