Skip to main content
EnsNameRegistrationForm registers a .eth name on ENSv2. The user searches for a name, picks a duration, optionally sets profile records, and confirms the commit and register transactions. Registration is paid in USDC or DAI.

Example

How the flow works

  1. The user types a label. The form checks availability with the ENSv2 registrar and shows the price.
  2. The user picks a duration in years or with a calendar date. The minimum is 28 days.
  3. The user can add records, an avatar, and a header image before registering.
  4. The form sends the commit transaction, waits the registrar’s minimum commitment age, then sends the register transaction. If the page reloads during the wait, the commitment resumes.
  5. Each owner gets their own PermissionedResolver. On the owner’s first registration it’s deployed as an extra step in the same flow, and records set during registration are written to it.
The referrer is part of the registration. It defaults to Namespace’s referrer address.

Props

Success data

onRegistrationSuccess receives an object with these string fields: