# transferLightAccountOwnership | @account-kit/smart-contracts

> Overview of the transferLightAccountOwnership function from @account-kit/smart-contracts

> For the complete documentation index, see [llms.txt](/docs/llms.txt).

{/* This file is auto-generated by TypeDoc. Do not edit manually. */}

```ts
function transferLightAccountOwnership<TTransport, TChain, TSigner, TAccount>(
  client,
  args,
): Promise<`0x${string}`>;
```

Defined in: [account-kit/smart-contracts/src/light-account/actions/transferOwnership.ts:51](https://github.com/alchemyplatform/aa-sdk/blob/main/account-kit/smart-contracts/src/light-account/actions/transferOwnership.ts#L51)

Transfers the ownership of a light account to a new owner.
This function ensures that the client is a compatible smart acccount client and that a Light Account is provided.
If the waitForTxn parameter is true, it will wait for the transaction to be completed before returning.

## Example

```ts
import {
  transferOwnership,
  createLightAccountClient,
} from "@account-kit/smart-contracts";

const lightAccountClient = createLightAccountClient({
  signer,
  transport,
  chain,
});

const txHash = await transferOwnership(lightAccountClient, {
  newOwner: newOwnerSigner,
  waitForTxn: true, // set to false to return a uoHash instead
});
```

## Type Parameters

<table>
  <thead>
    <tr>
      <th align="left">Type Parameter</th>
      <th align="left">Default type</th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `TTransport` *extends* [`Transport`](https://viem.sh)
      </td>

      <td>
        [`Transport`](https://viem.sh)
      </td>
    </tr>

    <tr>
      <td>
        `TChain` *extends* `undefined` | [`Chain`](https://viem.sh)
      </td>

      <td>
        `undefined` | [`Chain`](https://viem.sh)
      </td>
    </tr>

    <tr>
      <td>
        `TSigner` *extends* `SmartAccountSigner`\<`any`>
      </td>

      <td>
        `SmartAccountSigner`\<`any`>
      </td>
    </tr>

    <tr>
      <td>
        `TAccount` *extends* `any`
      </td>

      <td>
        `any`
      </td>
    </tr>

  </tbody>
</table>

## Parameters

<table>
  <thead>
    <tr>
      <th align="left">Parameter</th>
      <th align="left">Type</th>
      <th align="left">Description</th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `client`
      </td>

      <td>
        [`Client`](https://viem.sh)\<`TTransport`, `TChain`, `TAccount`>
      </td>

      <td>
        The smart account client instance used to execute the transfer
      </td>
    </tr>

    <tr>
      <td>
        `args`
      </td>

      <td>
        `TransferLightAccountOwnershipParams`\<`TSigner`, `TAccount`>
      </td>

      <td>
        The parameters for transferring ownership
      </td>
    </tr>

  </tbody>
</table>

## Returns

`Promise`\<`` `0x${string}` ``>

The transaction or UO hash as a Hex string