# sessionKeyPluginActions | @account-kit/smart-contracts

> Creates actions for managing session keys in a smart contract associated with a client, including adding, removing, rotating, and updating session key permissions.

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

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

```ts
const sessionKeyPluginActions: <TTransport, TChain, TAccount>(
  client,
) => SessionKeyPluginActions<TAccount>;
```

Defined in: [account-kit/smart-contracts/src/msca/plugins/session-key/extension.ts:99](https://github.com/alchemyplatform/aa-sdk/blob/main/account-kit/smart-contracts/src/msca/plugins/session-key/extension.ts#L99)

Creates actions for managing session keys in a smart contract associated with a client, including adding, removing, rotating, and updating session key permissions.

## Example

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

const client = createModularAccountAlchemyClient(...).extend(sessionKeyPluginActions);
```

## 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* [`Chain`](https://viem.sh) | `undefined`
      </td>

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

    <tr>
      <td>
        `TAccount` *extends* `SmartContractAccount` | `undefined`
      </td>

      <td>
        `SmartContractAccount` | `undefined`
      </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 client instance to use for managing session keys
      </td>
    </tr>

  </tbody>
</table>

## Returns

[`SessionKeyPluginActions`](../type-aliases/SessionKeyPluginActions)\<`TAccount`>

An object containing methods for session key management and interaction with the smart contract