# useSmartWalletClient | @account-kit/react

> Overview of the useSmartWalletClient hook from @account-kit/react

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

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

```ts
function useSmartWalletClient<TAccount>(
  params,
): GetSmartWalletClientResult<TAccount>;
```

Defined in: [account-kit/react/src/hooks/useSmartWalletClient.ts:42](https://github.com/alchemyplatform/aa-sdk/blob/main/account-kit/react/src/hooks/useSmartWalletClient.ts#L42)

React hook that provides a Smart Wallet Client instance.
Returns undefined if an EOA wallet is connected via wagmi, as Smart Wallet Clients are only for smart accounts.
The hook automatically subscribes to changes in signer status and chain configuration.

## Example

```tsx twoslash
import { useSmartWalletClient } from "@account-kit/react";

function MyComponent() {
  const client = useSmartWalletClient();

  // With specific account address
  const clientWithAccount = useSmartWalletClient({
    account: "0x1234...",
  });

  if (client) {
    // Use the client for wallet operations
    console.log("Smart Wallet Client ready:", client);
  }

  return <div>...</div>;
}
```

## Type Parameters

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

  <tbody>
    <tr>
      <td>
        `TAccount` *extends* `undefined` | `` `0x${string}` ``
      </td>

      <td>
        `undefined` | `` `0x${string}` ``
      </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>
        `params`
      </td>

      <td>
        `GetSmartWalletClientParams`\<`TAccount`>
      </td>

      <td>
        Parameters for getting the smart wallet client, including optional account address
      </td>
    </tr>

  </tbody>
</table>

## Returns

`GetSmartWalletClientResult`\<`TAccount`>

The Smart Wallet Client instance or undefined if an EOA is connected or client is unavailable