# formatSign | @account-kit/wallet-client

> Overview of the formatSign function from @account-kit/wallet-client

> 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<TAccount>(client, params): Promise<{}>;
```

Defined in: [account-kit/wallet-client/src/client/actions/formatSign.ts:42](https://github.com/alchemyplatform/aa-sdk/blob/main/account-kit/wallet-client/src/client/actions/formatSign.ts#L42)

Formats a signature request for signing messages or transactions.

## Example

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

## Type Parameters

<table>
  <thead>
    <tr>
      <th align="left">Type Parameter</th>
      <th align="left">Default type</th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `TAccount` *extends* `undefined` | `` `0x${string}` ``
      </td>

      <td>
        `undefined` | `` `0x${string}` ``
      </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>
        `InnerWalletApiClient`
      </td>

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

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

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

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

  </tbody>
</table>

## Returns

`Promise`\<\{
}>

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