useEnsName

Get the ENS name and avatar for an address

Example

import { useEnsName } from "thirdweb/react";
const { data: ensName } = useEnsName({
client,
address: "0x1234...",
});

Parameters

Returns

  • a query object that resolves to the ENS name