# formatSign

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

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

Formats a signature request for signing messages or transactions.

## Example

```ts
// Formats a signature
const result = await client.formatSign({
  account: "0x1234...",
  signature: {
    type: "ecdsa",
    data: "0xabcd...",
  },
});
```

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

      <td>
        Parameters for formatting the signature
      </td>
    </tr>

  </tbody>
</table>

## Returns

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

A Promise that resolves to the formatSign result containing the formatted signature.