Skip to main content
The getAvatar utility is designed to retrieve an avatar image URL from an onchain identity provider for a given name. Consider the utility instead of the hook when you use it with Next.js or any Node.js backend. Supported providers:

Usage

Get Basename avatar:
Get ENS avatar:

Returns

Promise<GetAvatarReturnType>