Documentation for agents: an index at /llms.txt, every docs page in one file at /llms-full.txt, and Markdown for any docs page by adding .md to its URL.

Skip to Content
ensforgeReact

useMigrationStatus

Reads whether and how a name can move from ENSv1 to ENSv2. Signature, options, result and examples for useMigrationStatus in @ensforge/react.

Read hookstable
Since v1.0.0View source

Reads whether and how a name can move from ENSv1 to ENSv2. Preset of useRead(Actions.migration.get, …).

It wraps migration.get: the same options, result and errors.

Signature

function useMigrationStatus(options: Actions.migration.get.Options | undefined, config?: ReadConfig): ReadResult<Actions.migration.get.ReturnType, Actions.migration.get.ErrorType>

Examples

Reading in a component
import { useMigrationStatus } from "@ensforge/react"

function View() {
  const { data: migration } = useMigrationStatus({ name: "alice.eth" })
  return <span>{migration?.status}</span>
}

See also

  • The hook types: ReadResult, WriteResult and ReadConfig.

Was this page helpful?