Skip to main content
The useName hook is used to get name from an onchain identity provider for a given address. 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 name from an address:
Get Basename from an address:

Returns

useQuery<Promise<GetAddressReturnType>>

Parameters

UseNameOptions

UseNameOptions

UseQueryOptions

UseQueryOptions