# getCapabilities

> Overview of the getCapabilities function

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

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

```ts
function getCapabilities(client, params?): Promise<GetCapabilitiesResult>;
```

Defined in: [packages/wallet-apis/src/actions/getCapabilities.ts:31](https://github.com/alchemyplatform/aa-sdk/blob/v5.x.x/packages/wallet-apis/src/actions/getCapabilities.ts#L31)

Gets the capabilities supported by the wallet for the given account.
Delegates to viem's `getCapabilities` and renames `paymasterService`
to `paymaster` for consistency with the SDK's public API.

## Example

```ts
const capabilities = await client.getCapabilities({
  account: "0x1234...",
});
// { paymaster: { supported: true }, atomic: { status: "supported" } }
```

## 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>
        `InnerWalletApiClient`
      </td>

      <td>
        The wallet API client to use for the request
      </td>
    </tr>

    <tr>
      <td>
        `params?`
      </td>

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

      <td>
        Optional parameters
      </td>
    </tr>

  </tbody>
</table>

## Returns

`Promise`\<[`GetCapabilitiesResult`](../type-aliases/GetCapabilitiesResult)>

The capabilities for the given chain