Primary Names
A “Primary Name” (or reverse record) is the name that an address identifies as its main identity.Retrieving Primary Names
Using Wagmi
TheuseEnsName hook is the simplest way to find the primary name for an address.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Resolving addresses back to Namoshi names
useEnsName hook is the simplest way to find the primary name for an address.
import { useEnsName } from 'wagmi'
export const DisplayName = ({ address }) => {
const { data: name } = useEnsName({
address,
chainId: 4114,
})
return <div>{name || address}</div>
}
const name = await client.getEnsName({
address: '0x123...abc',
})