useEnsAvatar

Get the ENS avatar for an ENS name

Example

import { useEnsAvatar } from "thirdweb/react";
const { data: ensAvatar } = useEnsAvatar({
client,
ensName: "my-ens-name.eth",
});

Parameters

Returns

  • a query object that resolves to the avatar