# prepareSign

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

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

Prepares a signature request for signing messages or transactions.

## Example

```ts
// Prepare a message to be signed
const result = await client.prepareSign({
  account: "0x1234...",
  type: "personal_sign",
  data: "Hello, world!",
});
```

## 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>
        [`PrepareSignParams`](../type-aliases/PrepareSignParams)
      </td>

      <td>
        Parameters for preparing the signature request
      </td>
    </tr>

  </tbody>
</table>

## Returns

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

A Promise that resolves to the prepare sign result containing a signature request