# signSignatureRequest

> Overview of the signSignatureRequest 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 signSignatureRequest(
  client,
  params,
): Promise<SignSignatureRequestResult>;
```

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

Signs a signature request using the provided signer.
This method handles different types of signature requests including personal_sign, eth_signTypedData_v4, and authorization.

## Example

```ts
// Sign a personal message
const result = await client.signSignatureRequest({
  type: 'personal_sign',
  data: 'Hello, world!'
});

// Sign typed data (EIP-712)
const result = await client.signSignatureRequest({
  type: 'eth_signTypedData_v4',
  data: {
    domain: { ... },
    types: { ... },
    primaryType: '...',
    message: { ... }
  }
});
```

## 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 client to use for signing
      </td>
    </tr>

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

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

      <td>
        The signature request parameters
      </td>
    </tr>

  </tbody>
</table>

## Returns

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

A Promise that resolves to the signature result