useNames
hook is used to get multiple names from an onchain identity provider
for an array of addresses in a single batch request.
It is implemented with useQuery from @tanstack/react-query
, and returns a UseQueryResult
object, allowing you to pass through all @tanstack/react-query
options.
Usage
Get ENS names from multiple addresses:Returns
useQuery<Promise<GetNameReturnType[]>>
Parameters
UseNamesOptions
UseNamesOptions
UseQueryOptions
UseQueryOptions