resolveAvatar

Resolves an ENS name to the avatar URL.

Example

import { resolveAvatar } from "thirdweb/extensions/ens";
const address = await resolveAvatar({
client,
name: "vitalik.eth",
});

Parameters

Returns

A promise that resolves to the avatar url, or null if not set.