# useNamesForAddress

> For the complete documentation index, see [llms.txt](https://ensforge.com/llms.txt).

Lists the names an address owns, manages or is the primary name of, page by page, from the indexer. Signature, result and examples for useNamesForAddress.

Source: https://ensforge.com/docs/reference/react/use-names-for-address

<ApiMeta kind="Read hook" stability="stable" since="1.0.0" source="packages/react/src/hooks/named/reads.ts#L304" />

Lists the names an address owns, manages or is the primary name of, page by page, from the indexer. Preset of `useInfiniteRead(Actions.indexer.getNamesForAddress, …)`.

It wraps [`indexer.getNamesForAddress`](/docs/reference/sdk/indexer/get-names-for-address): the same options, result and errors.

## Signature [#signature]

```ts
function useNamesForAddress(options: Omit<Actions.indexer.getNamesForAddress.Options, "cursor">, config?: { readonly client?: ReadConfig["client"] }): InfiniteReadResult< Actions.indexer.getNamesForAddress.ReturnType, Actions.indexer.getNamesForAddress.ErrorType >
```

## Examples [#examples]

```tsx title="A list with \"Load more\""
import { useNamesForAddress } from "@ensforge/react"

function List() {
  const { items, hasMore, loadMore } = useNamesForAddress({ address })
  return <button disabled={!hasMore} onClick={loadMore}>{items.length}</button>
}
```

## See also [#see-also]

- The [hook types](/docs/reference/react#types): `ReadResult`, `WriteResult` and `ReadConfig`.