# useTransferName

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

Transfers a name to another account. Signature, options, result and examples for useTransferName in @ensforge/react. Includes examples.

Source: https://ensforge.com/docs/reference/react/use-transfer-name

<ApiMeta kind="Write hook" stability="stable" since="1.0.0" source="packages/react/src/hooks/named/writes.ts#L153" />

Transfers a name to another account. Preset of `useWrite(Actions.name.transfer)`.

It wraps [`name.transfer`](/docs/reference/sdk/name/transfer): the same options, result and errors.

## Signature [#signature]

```ts
function useTransferName(config?: Parameters<typeof useWrite>[1]): WriteResult< Parameters<typeof Actions.name.transfer>[1], Actions.name.transfer.ReturnType, Actions.name.transfer.ErrorType >
```

## Examples [#examples]

```tsx title="A button that sends it"
import { useTransferName } from "@ensforge/react"

function Send() {
  const { mutate, isPending } = useTransferName()
  return <button disabled={isPending} onClick={() => mutate({ name: "alice.eth", to: recipient })}>Send</button>
}
```

## See also [#see-also]

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