# watchSmartWalletClient | @account-kit/core

> Overview of the watchSmartWalletClient function from @account-kit/core

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

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

```ts
function watchSmartWalletClient(config): (onChange) => any;
```

Defined in: [account-kit/core/src/actions/watchSmartWalletClient.ts:29](https://github.com/alchemyplatform/aa-sdk/blob/main/account-kit/core/src/actions/watchSmartWalletClient.ts#L29)

Creates a subscription function that watches for changes to the Smart Wallet Client.
Triggers the onChange callback whenever the signer status or chain changes.

## Example

```ts
import { watchSmartWalletClient } from "@account-kit/core";
// see createConfig for more information on how to create a config
import { config } from "./config.js";

const watchClient = watchSmartWalletClient(config);
const unsubscribe = watchClient((client) => {
  console.log("Smart Wallet Client changed:", client);
});

// Clean up subscription
unsubscribe();
```

## Parameters

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

  <tbody>
    <tr>
      <td>
        `config`
      </td>

      <td>
        `AlchemyAccountsConfig`
      </td>

      <td>
        The configuration containing the client store and connection information
      </td>
    </tr>

  </tbody>
</table>

## Returns

A function that accepts an onChange callback and returns an unsubscribe function

```ts
(onChange): any;
```

### Parameters

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

  <tbody>
    <tr>
      <td>
        `onChange`
      </td>

      <td>
        (`client`) => `void`
      </td>
    </tr>

  </tbody>
</table>

### Returns

`any`