Skip to main content
SubnameMintForm mints an onchain subname under a parent name. The user picks a label, a duration, and a payment token, optionally sets records, and confirms the mint. By default it mints on ENSv2.

Before you start

The parent must be a .eth name with a Namespace ENSv2 activation. The owner sets one up in the Namespace App. The activation sets the price, the accepted payment tokens, the whitelist, and reserved labels. The form reads all of these and fetches whitelist and reservation proofs itself.

Example

The user pays in USDC or DAI and picks the token in the form. Network fees are always in ETH.

Props

Success data

Mint under an old Namespace listing

Parents listed in the Namespace App before ENSv2 have an ENSv1 listing. Onchain subnames don’t migrate to ENSv2, so those listings keep minting on ENSv1. Pass version={1} for them:
  • The parent can be a .eth name or a DNS name imported into ENS.
  • The mint is paid in ETH.
  • Some listings mint on Base or Optimism. Add those chains to your wagmi config. The form asks the user to switch chains.
See ENSv2 and Namespace for which names use which version.