# formatSignatures | @account-kit/smart-contracts

> Overview of the formatSignatures function from @account-kit/smart-contracts

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

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

```ts
function formatSignatures(signatures, usingMaxValues): `0x${string}`;
```

Defined in: [account-kit/smart-contracts/src/msca/plugins/multisig/utils/formatSignatures.ts:15](https://github.com/alchemyplatform/aa-sdk/blob/main/account-kit/smart-contracts/src/msca/plugins/multisig/utils/formatSignatures.ts#L15)

Formats a collection of Signature objects into a single aggregated signature.
The format is in the form of EOA_SIGS | CONTRACT_SIG_DATAS. The signatures are ordered
by signer address. The EOA SIGS contain the 65 signautre data for EOA signers and 65 bytes containing SIGNER | OFFSET | V for contract signers.
The OFFSET is used to fetch the signature data from the CONTRACT_SIG_DATAS.

## Parameters

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

  <tbody>
    <tr>
      <td>
        `signatures`
      </td>

      <td>
        `Signature`\[]
      </td>

      <td>
        `undefined`
      </td>

      <td>
        the array of Signature objects to combine into the correct aggregated signature format excluding the upper limits
      </td>
    </tr>

    <tr>
      <td>
        `usingMaxValues`
      </td>

      <td>
        `boolean`
      </td>

      <td>
        `false`
      </td>

      <td>
        a boolean indicating wether or not the UserOperation is using the UPPER\_LIMIT for the gas and fee values
      </td>
    </tr>

  </tbody>
</table>

## Returns

`` `0x${string}` ``

the Hex representation of the signature