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
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,WriteResultandReadConfig.
Was this page helpful?