Skip to main content
The getNames utility is designed to retrieve multiple names from an onchain identity provider for an array of addresses 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 ENS names from multiple addresses:
Get Basenames from multiple addresses:
Get a mix of ENS names and sliced addresses when some addresses don’t have names:

Returns

Array of GetNameReturnType

Parameters

GetNames

GetNames