# getSigner | @account-kit/core

> Overview of the getSigner 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 getSigner<T>(config): null | T;
```

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

If there is a signer attached to the client state, it will return it.
The signer should always be null on the server, and will be set on the client
if the store was properly hydrated.

## Example

```ts
import { getSigner } from "@account-kit/core";
import { config } from "./config";

const signer = getSigner(config);
```

## Type Parameters

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

  <tbody>
    <tr>
      <td>
        `T` *extends* `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>
        `config`
      </td>

      <td>
        [`AlchemyAccountsConfig`](../type-aliases/AlchemyAccountsConfig)
      </td>

      <td>
        The account config which contains the client store
      </td>
    </tr>

  </tbody>
</table>

## Returns

`null` | `T`

the instance of the signer present in the store if it exists, otherwise null