Skip to main content
The getAvatars utility is designed to retrieve multiple avatars from an onchain identity provider for an array of ENS names or Basenames in a single batch request. Consider the utility instead of the hook when you use it with Next.js or any Node.js backend.

Usage

Get avatars for multiple ENS names:
Get avatars for multiple Basenames:
Get avatars for a mix of ENS names and Basenames:

Returns

Array of GetAvatarReturnType

Parameters

GetAvatars

GetAvatars